[pypy-svn] r46961 - pypy/dist/pypy/rpython/test

arigo at codespeak.net arigo at codespeak.net
Thu Sep 27 16:12:08 CEST 2007


Author: arigo
Date: Thu Sep 27 16:12:07 2007
New Revision: 46961

Modified:
   pypy/dist/pypy/rpython/test/test_rint.py
Log:
Enhance this test to show a case where we need a Python long object
in order to express a constant r_uint().


Modified: pypy/dist/pypy/rpython/test/test_rint.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rint.py	(original)
+++ pypy/dist/pypy/rpython/test/test_rint.py	Thu Sep 27 16:12:07 2007
@@ -100,9 +100,10 @@
         assert res == '-' + oct(sys.maxint+1).replace('L', '').replace('l', '')
 
     def test_unsigned(self):
+        bigvalue = sys.maxint + 17
         def dummy(i):
             i = r_uint(i)
-            j = r_uint(12)
+            j = r_uint(bigvalue)
             return i < j
 
         res = self.interpret(dummy,[0])



More information about the Pypy-commit mailing list