mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue