[pypy-commit] pypy py3k: s/func_code/__code__, and force the list out of range()
antocuni
noreply at buildbot.pypy.org
Tue Feb 21 16:07:36 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
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
More information about the pypy-commit
mailing list