Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r69698:b2e2ac51eb19
Date: 2014-03-04 11:59 -0800
http://bitbucket.org/pypy/pypy/changeset/b2e2ac51eb19/
Log: hack around appdirect failures
diff --git a/pypy/objspace/std/test/test_longobject.py
b/pypy/objspace/std/test/test_longobject.py
--- a/pypy/objspace/std/test/test_longobject.py
+++ b/pypy/objspace/std/test/test_longobject.py
@@ -43,12 +43,11 @@
class AppTestLong:
- def setup_class(cls):
- from pypy.interpreter import gateway
- from pypy.objspace.std.longobject import W_LongObject
- def w__long(space, w_obj):
- return W_LongObject.fromint(space, space.int_w(w_obj))
- cls.w__long = cls.space.wrap(gateway.interp2app(w__long))
+ def w__long(self, obj):
+ import sys
+ # XXX: currently returns a W_LongObject but might return
+ # W_IntObject in the future
+ return obj + sys.maxsize - sys.maxsize
def test_trunc(self):
import math
@@ -401,6 +400,8 @@
def test_large_identity(self):
import sys
+ if '__pypy__' not in sys.builtin_module_names:
+ skip('PyPy only')
a = sys.maxsize + 1
b = sys.maxsize + 2
assert a is not b
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit