From eeb49cd6678bc30f2131fa9eb2245c70c4100fc9 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Wed, 12 Dec 2007 08:32:02 +0000 Subject: [PATCH] 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. --- Lib/ctypes/test/test_values.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py index 7ba3e21efa..a39674f387 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__) -- 2.40.0