Commit eeb49cd6 authored by Thomas Heller's avatar Thomas Heller

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.
parent 94b7d3db
......@@ -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__)
......
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