[pypy-svn] r50756 - pypy/dist/pypy/rpython/test
arigo at codespeak.net
arigo at codespeak.net
Fri Jan 18 17:35:41 CET 2008
Author: arigo
Date: Fri Jan 18 17:35:41 2008
New Revision: 50756
Modified:
pypy/dist/pypy/rpython/test/test_rclass.py
Log:
Fix test for the way the JS backend runs it.
Modified: pypy/dist/pypy/rpython/test/test_rclass.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rclass.py (original)
+++ pypy/dist/pypy/rpython/test/test_rclass.py Fri Jan 18 17:35:41 2008
@@ -602,16 +602,16 @@
# Although the code below is a bit strange, there are
# subtle ways in which the same situation could occur.
# One is shown by test_specialize_methods().
- if n < 0:
+ if n < 10:
x = B()
else:
x = A()
- if n < -3:
+ if n < 7:
return x.foo()
else:
return 100
- assert self.interpret(fn, [-5]) == 42
- assert self.interpret(fn, [5]) == 100
+ assert self.interpret(fn, [5]) == 42
+ assert self.interpret(fn, [15]) == 100
def test_specialize_methods(self):
from pypy.rlib.objectmodel import specialize
More information about the Pypy-commit
mailing list