[pypy-svn] r72321 - pypy/branch/kill-python-h/pypy/translator/c/test

arigo at codespeak.net arigo at codespeak.net
Wed Mar 17 17:59:38 CET 2010


Author: arigo
Date: Wed Mar 17 17:59:37 2010
New Revision: 72321

Modified:
   pypy/branch/kill-python-h/pypy/translator/c/test/test_math.py
Log:
Finally: test both the non-optimized and the optimized case.
Finds a bug when the test itself runs on top of pypy-c.


Modified: pypy/branch/kill-python-h/pypy/translator/c/test/test_math.py
==============================================================================
--- pypy/branch/kill-python-h/pypy/translator/c/test/test_math.py	(original)
+++ pypy/branch/kill-python-h/pypy/translator/c/test/test_math.py	Wed Mar 17 17:59:37 2010
@@ -39,11 +39,16 @@
         print "all ok"
     return 0
 
+
 class TestMath(StandaloneTests):
-    def test_math(self):
-        t, cbuilder = self.compile(fn)
+
+    def test_math(self, debug=True):
+        t, cbuilder = self.compile(fn, debug=debug)
         data = cbuilder.cmdexec('')
         if "error:" in data:
             py.test.fail(data.strip())
         else:
             assert "all ok" in data
+
+    def test_math_nodebug(self):
+        self.test_math(debug=False)



More information about the Pypy-commit mailing list