File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
src/diffpy/structure/tests Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 33"""Unit tests for the loadStructure factory.
44"""
55
6- from pathlib import Path
76import unittest
87from diffpy .structure .tests .testutils import datafile
98from 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
You can’t perform that action at this time.
0 commit comments