[pypy-svn] r11733 - pypy/dist/lib-python/modified-2.3.4/test

arigo at codespeak.net arigo at codespeak.net
Sun May 1 22:26:17 CEST 2005


Author: arigo
Date: Sun May  1 22:26:16 2005
New Revision: 11733

Added:
   pypy/dist/lib-python/modified-2.3.4/test/test_complex.py
      - copied, changed from r11726, pypy/dist/lib-python/2.3.4/test/test_complex.py
Log:
A version of test_complex with a much faster test_div()


Copied: pypy/dist/lib-python/modified-2.3.4/test/test_complex.py (from r11726, pypy/dist/lib-python/2.3.4/test/test_complex.py)
==============================================================================
--- pypy/dist/lib-python/2.3.4/test/test_complex.py	(original)
+++ pypy/dist/lib-python/modified-2.3.4/test/test_complex.py	Sun May  1 22:26:16 2005
@@ -68,7 +68,7 @@
             self.assertClose(q, x)
 
     def test_div(self):
-        simple_real = [float(i) for i in xrange(-5, 6)]
+        simple_real = [-2.0, 0.0, 1.0, 5.0]
         simple_complex = [complex(x, y) for x in simple_real for y in simple_real]
         for x in simple_complex:
             for y in simple_complex:



More information about the Pypy-commit mailing list