Author: Armin Rigo <ar...@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
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to