Commit 9f6bd494 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #1759 from peastman/deldcd

Fixed test failure on Windows
parents 9ae41c1f f1e31c1d
...@@ -47,6 +47,7 @@ class TestDCDFile(unittest.TestCase): ...@@ -47,6 +47,7 @@ class TestDCDFile(unittest.TestCase):
simulation.step(10) simulation.step(10)
self.assertEqual(5, dcd._dcd._modelCount) self.assertEqual(5, dcd._dcd._modelCount)
del simulation del simulation
del dcd
len1 = os.stat(fname).st_size len1 = os.stat(fname).st_size
# Create a new simulation and have it append some more frames. # Create a new simulation and have it append some more frames.
...@@ -61,6 +62,8 @@ class TestDCDFile(unittest.TestCase): ...@@ -61,6 +62,8 @@ class TestDCDFile(unittest.TestCase):
self.assertEqual(10, dcd._dcd._modelCount) self.assertEqual(10, dcd._dcd._modelCount)
len2 = os.stat(fname).st_size len2 = os.stat(fname).st_size
self.assertTrue(len2-len1 > 3*4*5*system.getNumParticles()) self.assertTrue(len2-len1 > 3*4*5*system.getNumParticles())
del simulation
del dcd
os.remove(fname) os.remove(fname)
......
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