[pypy-svn] pypy default: Fixed math tests.
alex_gaynor
commits-noreply at bitbucket.org
Wed Jan 19 17:26:46 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r40937:082cac8085f8
Date: 2011-01-19 10:05 -0600
http://bitbucket.org/pypy/pypy/changeset/082cac8085f8/
Log: Fixed math tests.
diff --git a/pypy/module/math/test/test_math.py b/pypy/module/math/test/test_math.py
--- a/pypy/module/math/test/test_math.py
+++ b/pypy/module/math/test/test_math.py
@@ -8,10 +8,9 @@
cls.space = gettestobjspace(usemodules=['math'])
cls.w_cases = cls.space.wrap(test_direct.MathTests.TESTCASES)
cls.w_consistent_host = cls.space.wrap(test_direct.consistent_host)
- cls.w_ftest = cls.space.appexec((), """():
- def ftest(actual, expected):
- assert abs(actual - expected) < 10E-5
- return ftest""")
+
+ def w_ftest(self, actual, expected):
+ assert abs(actual - expected) < 10E-5
def test_all_cases(self):
if not self.consistent_host:
More information about the Pypy-commit
mailing list