[pypy-svn] r77072 - pypy/branch/fast-forward/pypy/module/math/test
afa at codespeak.net
afa at codespeak.net
Tue Sep 14 21:59:32 CEST 2010
Author: afa
Date: Tue Sep 14 21:59:31 2010
New Revision: 77072
Modified:
pypy/branch/fast-forward/pypy/module/math/test/test_direct.py
Log:
Try to let tests pass when run on top of an older CPython
Modified: pypy/branch/fast-forward/pypy/module/math/test/test_direct.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/math/test/test_direct.py (original)
+++ pypy/branch/fast-forward/pypy/module/math/test/test_direct.py Tue Sep 14 21:59:31 2010
@@ -32,6 +32,9 @@
for name in unary_math_functions:
try:
input, output = (0.3,), getattr(math, name)(0.3)
+ except AttributeError:
+ # cannot test this function
+ pass
except ValueError:
input, output = (1.3,), getattr(math, name)(1.3)
REGCASES.append((name, input, output))
More information about the Pypy-commit
mailing list