[Python-checkins] r79890 - python/trunk/Lib/ctypes/test/test_callbacks.py

mark.dickinson python-checkins at python.org
Wed Apr 7 12:18:27 CEST 2010


Author: mark.dickinson
Date: Wed Apr  7 12:18:27 2010
New Revision: 79890

Log:
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).


Modified:
   python/trunk/Lib/ctypes/test/test_callbacks.py

Modified: python/trunk/Lib/ctypes/test/test_callbacks.py
==============================================================================
--- python/trunk/Lib/ctypes/test/test_callbacks.py	(original)
+++ python/trunk/Lib/ctypes/test/test_callbacks.py	Wed Apr  7 12:18:27 2010
@@ -61,10 +61,16 @@
         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):


More information about the Python-checkins mailing list