Skip to content

Commit 684e8d6

Browse files
committed
update test
1 parent fe48cbd commit 684e8d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/diffpy/structure/tests/testloadstructure.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ def test_cif_pathlib(self):
4646
"""check loading of CIF file format from pathlib.Path
4747
"""
4848
f = datafile('PbTe.cif')
49-
f = Path(f)
50-
stru = loadStructure(f)
49+
p = Path(f)
50+
self.assertTrue(isinstance(p, Path))
51+
stru = loadStructure(p)
5152
self.assertTrue(isinstance(stru, Structure))
5253
self.assertFalse(isinstance(stru, PDFFitStructure))
5354
return

0 commit comments

Comments
 (0)