[pypy-svn] pypy jit-longlong: Fix test_longlong.py.
arigo
commits-noreply at bitbucket.org
Wed Jan 26 15:29:56 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: jit-longlong
Changeset: r41354:3b5787e017e9
Date: 2011-01-26 15:28 +0100
http://bitbucket.org/pypy/pypy/changeset/3b5787e017e9/
Log: Fix test_longlong.py.
diff --git a/pypy/jit/codewriter/jtransform.py b/pypy/jit/codewriter/jtransform.py
--- a/pypy/jit/codewriter/jtransform.py
+++ b/pypy/jit/codewriter/jtransform.py
@@ -1278,7 +1278,8 @@
calldescr = self.callcontrol.getcalldescr(op, oopspecindex,
extraeffect)
if extraeffect is not None:
- assert calldescr.get_extra_info().extraeffect == extraeffect
+ assert (type(calldescr) is str # for tests
+ or calldescr.get_extra_info().extraeffect == extraeffect)
if isinstance(op.args[0].value, str):
pass # for tests only
else:
More information about the Pypy-commit
mailing list