diff options
author | Thomas Heller <theller@ctypes.org> | 2007-12-12 08:32:02 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-12-12 08:32:02 (GMT) |
commit | eeb49cd6678bc30f2131fa9eb2245c70c4100fc9 (patch) | |
tree | bb68cbc0c27231eb5752e4b7d5d8d972b99c5d56 /Lib | |
parent | 94b7d3db597ddcf721cf9d214419c63b6085ef1f (diff) | |
download | cpython-eeb49cd6678bc30f2131fa9eb2245c70c4100fc9.zip cpython-eeb49cd6678bc30f2131fa9eb2245c70c4100fc9.tar.gz cpython-eeb49cd6678bc30f2131fa9eb2245c70c4100fc9.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/test/test_values.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py index 7ba3e21..a39674f 100644 --- a/Lib/ctypes/test/test_values.py +++ b/Lib/ctypes/test/test_values.py @@ -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__) |