Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52733:ca3bebdbf7d8
Date: 2012-02-21 13:37 +0100
http://bitbucket.org/pypy/pypy/changeset/ca3bebdbf7d8/

Log:    s/func_code/__code__, and force the list out of range()

diff --git a/pypy/module/pypyjit/test/test_jit_hook.py 
b/pypy/module/pypyjit/test/test_jit_hook.py
--- a/pypy/module/pypyjit/test/test_jit_hook.py
+++ b/pypy/module/pypyjit/test/test_jit_hook.py
@@ -225,9 +225,9 @@
         def f():
             pass
 
-        op = DebugMergePoint([Box(0)], 'repr', 'pypyjit', 2, (f.func_code, 0, 
0))
+        op = DebugMergePoint([Box(0)], 'repr', 'pypyjit', 2, (f.__code__, 0, 
0))
         assert op.bytecode_no == 0
-        assert op.pycode is f.func_code
+        assert op.pycode is f.__code__
         assert repr(op) == 'repr'
         assert op.jitdriver_name == 'pypyjit'
         assert op.num == self.dmp_num
diff --git a/pypy/module/test_lib_pypy/test_greenlet.py 
b/pypy/module/test_lib_pypy/test_greenlet.py
--- a/pypy/module/test_lib_pypy/test_greenlet.py
+++ b/pypy/module/test_lib_pypy/test_greenlet.py
@@ -18,7 +18,7 @@
         lst.append(2)
         g.switch()
         lst.append(4)
-        assert lst == range(5)
+        assert lst == list(range(5))
 
     def test_parent(self):
         from greenlet import greenlet
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to