[pypy-svn] r36010 - pypy/dist/pypy/translator/backendopt/test
antocuni at codespeak.net
antocuni at codespeak.net
Thu Dec 28 10:46:22 CET 2006
Author: antocuni
Date: Thu Dec 28 10:46:21 2006
New Revision: 36010
Modified:
pypy/dist/pypy/translator/backendopt/test/test_inline.py
Log:
A failing test
Modified: pypy/dist/pypy/translator/backendopt/test/test_inline.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/test/test_inline.py (original)
+++ pypy/dist/pypy/translator/backendopt/test/test_inline.py Thu Dec 28 10:46:21 2006
@@ -547,6 +547,7 @@
res = eval_func([])
assert res == 5
+
class TestInlineOOType(OORtypeMixin, BaseTestInline):
def test_rtype_r_dict_exceptions(self):
@@ -570,3 +571,17 @@
res = eval_func([])
assert res == 42
+ def test_float(self):
+ py.test.skip('fixme!')
+ ex = ['', ' ']
+ def fn(i):
+ s = ex[i]
+ try:
+ return float(s)
+ except ValueError:
+ return -999.0
+
+ eval_func, t = self.check_auto_inlining(fn, [int])
+ expected = fn(0)
+ res = eval_func([0])
+ assert res == expected
More information about the Pypy-commit
mailing list