[pypy-svn] r18064 - in pypy/dist/pypy: rpython/test translator/c/test
arigo at codespeak.net
arigo at codespeak.net
Sat Oct 1 18:44:33 CEST 2005
Author: arigo
Date: Sat Oct 1 18:44:32 2005
New Revision: 18064
Modified:
pypy/dist/pypy/rpython/test/test_rfloat.py
pypy/dist/pypy/translator/c/test/test_extfunc.py
Log:
Tests too precise.
Modified: pypy/dist/pypy/rpython/test/test_rfloat.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rfloat.py (original)
+++ pypy/dist/pypy/rpython/test/test_rfloat.py Sat Oct 1 18:44:32 2005
@@ -53,4 +53,4 @@
return str(f)
res = interpret(fn, [1.5])
- assert ''.join(res.chars) == '%f' % 1.5
+ assert eval(''.join(res.chars)) == 1.5
Modified: pypy/dist/pypy/translator/c/test/test_extfunc.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_extfunc.py (original)
+++ pypy/dist/pypy/translator/c/test/test_extfunc.py Sat Oct 1 18:44:32 2005
@@ -308,7 +308,8 @@
def fn(f):
return str(f)
f = compile(fn, [float])
- assert f(1.5) == '%f' % 1.5
+ res = f(1.5)
+ assert eval(res) == 1.5
def test_lock():
import thread
More information about the Pypy-commit
mailing list