Author: Christian Tismer <[email protected]>
Branch: win64_gborg
Changeset: r49060:0bf72ed106e7
Date: 2011-11-09 21:43 +0100
http://bitbucket.org/pypy/pypy/changeset/0bf72ed106e7/

Log:    fixed test_rerased to show only the single error which it apparently
        had before ;-)

diff --git a/pypy/rlib/rerased.py b/pypy/rlib/rerased.py
--- a/pypy/rlib/rerased.py
+++ b/pypy/rlib/rerased.py
@@ -28,7 +28,7 @@
 
 
 def erase_int(x):
-    assert isinstance(x, int)
+    assert isinstance(x, (int, long))
     res = 2 * x + 1
     if res > sys.maxint or res < -sys.maxint - 1:
         raise OverflowError
@@ -36,7 +36,7 @@
 
 def unerase_int(y):
     assert y._identity is _identity_for_ints
-    assert isinstance(y._x, int)
+    assert isinstance(y._x, (int, long))
     return y._x
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to