TestSwigWrappers.py 436 Bytes
Newer Older
1
import unittest
2
import openmm as mm
3
4
5
6
7
8
9
10
11
12
13
14
15


class TestSwigWrappers(unittest.TestCase):
    def test_1(self):
        # This tests for a refcounting bug in the swig wrappers
        # that was previously problematic.
        # See https://github.com/pandegroup/openmm/issues/1214
        for cycle in range(10):
            system = mm.System()
            system.getDefaultPeriodicBoxVectors()

if __name__ == '__main__':
    unittest.main()