diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-04-07 10:18:27 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-04-07 10:18:27 (GMT) |
commit | 65605f7a5f029636522c80015f9295b2ea2e8d68 (patch) | |
tree | 34fd249a9e45d0b914cdb6ec7381a41ef7d36a0f /Lib/ctypes | |
parent | 497256ba18f4dae8da194b31326d256aab912931 (diff) | |
download | cpython-65605f7a5f029636522c80015f9295b2ea2e8d68.zip cpython-65605f7a5f029636522c80015f9295b2ea2e8d68.tar.gz cpython-65605f7a5f029636522c80015f9295b2ea2e8d68.tar.bz2 |
Use some more interesting test values for (unsigned) long long ctypes tests,
in the hope of getting more information about the test_ctypes failures
on Sparc (see issue #8314).
Diffstat (limited to 'Lib/ctypes')
-rw-r--r-- | Lib/ctypes/test/test_callbacks.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/ctypes/test/test_callbacks.py b/Lib/ctypes/test/test_callbacks.py index c758d56..513a2a0 100644 --- a/Lib/ctypes/test/test_callbacks.py +++ b/Lib/ctypes/test/test_callbacks.py @@ -61,10 +61,16 @@ class Callbacks(unittest.TestCase): self.check_type(c_ulong, 42) def test_longlong(self): + # test some 64-bit values, positive and negative + self.check_type(c_longlong, 5948291757245277467) + self.check_type(c_longlong, -5229388909784190580) self.check_type(c_longlong, 42) self.check_type(c_longlong, -42) def test_ulonglong(self): + # test some 64-bit values, with and without msb set. + self.check_type(c_ulonglong, 10955412242170339782) + self.check_type(c_ulonglong, 3665885499841167458) self.check_type(c_ulonglong, 42) def test_float(self): |