[pypy-svn] r43384 - pypy/dist/pypy/jit/timeshifter/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Mon May 14 21:52:25 CEST 2007
Author: cfbolz
Date: Mon May 14 21:52:24 2007
New Revision: 43384
Modified:
pypy/dist/pypy/jit/timeshifter/test/test_portal.py
Log:
another failing test
Modified: pypy/dist/pypy/jit/timeshifter/test/test_portal.py
==============================================================================
--- pypy/dist/pypy/jit/timeshifter/test/test_portal.py (original)
+++ pypy/dist/pypy/jit/timeshifter/test/test_portal.py Mon May 14 21:52:24 2007
@@ -531,7 +531,7 @@
assert res == 0
def test_portal_returns_none(self):
- #py.test.skip("portal returning None is not supported")
+ py.test.skip("portal returning None is not supported")
def g(x):
x = hint(x, promote=True)
if x == 42:
@@ -541,4 +541,20 @@
res = self.timeshift_from_portal(f, g, [42], policy=P_NOVIRTUAL)
+ def test_portal_returns_none_with_origins(self):
+ py.test.skip("portal returning None is not supported")
+ def returnNone():
+ pass
+ def returnNone2():
+ pass
+ def g(x):
+ x = hint(x, promote=True)
+ if x == 42:
+ return returnNone()
+ return returnNone2()
+ def f(x):
+ return g(x)
+
+ res = self.timeshift_from_portal(f, g, [42], policy=P_NOVIRTUAL)
+
More information about the Pypy-commit
mailing list