[pypy-svn] r14093 - pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test

gintas at codespeak.net gintas at codespeak.net
Sat Jul 2 14:51:33 CEST 2005


Author: gintas
Date: Sat Jul  2 14:51:32 2005
New Revision: 14093

Added:
   pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_bufio.py
      - copied, changed from r14077, pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_bufio.py
Log:
Added an override for test_bufio.py to make it significantly faster.


Copied: pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_bufio.py (from r14077, pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_bufio.py)
==============================================================================
--- pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_bufio.py	(original)
+++ pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_bufio.py	Sat Jul  2 14:51:32 2005
@@ -48,8 +48,11 @@
 nullpat = "\0" * 1000
 
 try:
-    for size in range(1, 257) + [512, 1000, 1024, 2048, 4096, 8192, 10000,
-                      16384, 32768, 65536, 1000000]:
+# Too slow for PyPy.
+#    for size in range(1, 257) + [512, 1000, 1024, 2048, 4096, 8192, 10000,
+#                      16384, 32768, 65536, 1000000]:
+    for size in range(1, 9) + [9, 63, 64, 65, 128, 129, 254, 255, 256, 512,
+                               1000, 1024, 2048, 4096, 8192, 10000, 16384]:
         drive_one(primepat, size)
         drive_one(nullpat, size)
 finally:



More information about the Pypy-commit mailing list