[pypy-commit] pypy default: Fix the test. This is mostly covering for an issue with

arigo noreply at buildbot.pypy.org
Sat Oct 15 14:56:45 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r48073:659180bd3030
Date: 2011-10-15 14:56 +0200
http://bitbucket.org/pypy/pypy/changeset/659180bd3030/

Log:	Fix the test. This is mostly covering for an issue with
	jit.isconstant(), but it is known.

diff --git a/pypy/rlib/test/test_jit.py b/pypy/rlib/test/test_jit.py
--- a/pypy/rlib/test/test_jit.py
+++ b/pypy/rlib/test/test_jit.py
@@ -139,12 +139,11 @@
 
     def test_isconstant(self):
         def f(n):
-            assert n >= 0
             assert isconstant(n) is False
             l = []
             l.append(n)
             return len(l)
-        res = self.interpret(f, [234])
+        res = self.interpret(f, [-234])
         assert res == 1
 
 


More information about the pypy-commit mailing list