mirror of
https://github.com/openmm/openmm
synced 2026-06-03 06:39:48 +09:00
* Top level Python module is now "openmm" * Updated module names in examples * Updated module names in documentation * Updated module in CI scripts * Added deprecation warning
16 lines
436 B
Python
16 lines
436 B
Python
import unittest
|
|
import openmm as mm
|
|
|
|
|
|
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()
|