Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r69744:cf32f7a88ca2
Date: 2014-03-05 17:02 -0800
http://bitbucket.org/pypy/pypy/changeset/cf32f7a88ca2/
Log: fix/py3k compat
diff --git a/pypy/objspace/std/test/test_intobject.py
b/pypy/objspace/std/test/test_intobject.py
--- a/pypy/objspace/std/test/test_intobject.py
+++ b/pypy/objspace/std/test/test_intobject.py
@@ -576,10 +576,13 @@
assert a == 9007199254740991
a = operator.truediv(x, 7)
assert a == 9007199254740991.0
- exec("from __future__ import division; "
- "a = x / 7; b = operator.truediv(x, 7)")
- assert a == 9007199254740991.0
- assert b == 9007199254740991.0
+
+ def test_truediv_future(self):
+ ns = dict(x=63050394783186940)
+ exec("from __future__ import division; import operator; "
+ "a = x / 7; b = operator.truediv(x, 7)", ns)
+ assert ns['a'] == 9007199254740991.0
+ assert ns['b'] == 9007199254740991.0
class AppTestIntShortcut(AppTestInt):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit