This test checks and modifies the value of an integer stored in a dll.

Restore the original value after modifying it so that subsequent tests
will not fail.  Fixes the failure in issue 1597.
This commit is contained in:
Thomas Heller 2007-12-12 08:32:02 +00:00
parent 94b7d3db59
commit eeb49cd667
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ class ValuesTestCase(unittest.TestCase):
self.failUnlessEqual(x, ctdll.get_an_integer())
an_integer.value *= 2
self.failUnlessEqual(x*2, ctdll.get_an_integer())
an_integer.value = x
self.failUnlessEqual(x, ctdll.get_an_integer())
def test_undefined(self):
ctdll = CDLL(_ctypes_test.__file__)