mirror of https://github.com/python/cpython
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:
parent
94b7d3db59
commit
eeb49cd667
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue