Commit df071ec7 authored by Robert McGibbon's avatar Robert McGibbon
Browse files

Close PDBx file before deleting to fix windows test failure in TestPDbxFile.py

parent 5e733a33
...@@ -70,6 +70,7 @@ class TestPdbxFile(unittest.TestCase): ...@@ -70,6 +70,7 @@ class TestPdbxFile(unittest.TestCase):
# There should only be 10 frames (0 through 9) # There should only be 10 frames (0 through 9)
self.assertRaises(IndexError, lambda: pdb.getPositions(frame=10)) self.assertRaises(IndexError, lambda: pdb.getPositions(frame=10))
self.assertIs(pdb.topology.getPeriodicBoxVectors(), None) self.assertIs(pdb.topology.getPeriodicBoxVectors(), None)
del sim
os.unlink('test.cif') os.unlink('test.cif')
def assertAlmostEqualVec(self, vec1, vec2, *args, **kwargs): def assertAlmostEqualVec(self, vec1, vec2, *args, **kwargs):
...@@ -111,6 +112,7 @@ class TestPdbxFile(unittest.TestCase): ...@@ -111,6 +112,7 @@ class TestPdbxFile(unittest.TestCase):
self.assertAlmostEqualVec(parm.topology.getPeriodicBoxVectors()[2], self.assertAlmostEqualVec(parm.topology.getPeriodicBoxVectors()[2],
pdb.topology.getPeriodicBoxVectors()[2], pdb.topology.getPeriodicBoxVectors()[2],
places=5) places=5)
del sim
os.unlink('test.cif') os.unlink('test.cif')
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment