Skip to content

Commit 3c09c4c

Browse files
committed
remove pathlib test
1 parent eafb2d3 commit 3c09c4c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/diffpy/structure/tests/testloadstructure.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""Unit tests for the loadStructure factory.
44
"""
55

6-
from pathlib import Path
76
import unittest
87
from diffpy.structure.tests.testutils import datafile
98
from diffpy.structure import loadStructure
@@ -41,17 +40,7 @@ def test_cif(self):
4140
self.assertTrue(isinstance(stru, Structure))
4241
self.assertFalse(isinstance(stru, PDFFitStructure))
4342
return
44-
45-
def test_cif_pathlib(self):
46-
"""check loading of CIF file format from pathlib.Path
47-
"""
48-
f = datafile('PbTe.cif')
49-
p = Path(f)
50-
self.assertTrue(isinstance(p, Path))
51-
stru = loadStructure(p)
52-
self.assertTrue(isinstance(stru, Structure))
53-
self.assertFalse(isinstance(stru, PDFFitStructure))
54-
return
43+
5544

5645
def test_badfile(self):
5746
"""check loading of CIF file format

0 commit comments

Comments
 (0)