]> granicus.if.org Git - python/commitdiff
The re test suite is very slow on slower hosts.
authorGuido van Rossum <guido@python.org>
Thu, 4 Sep 1997 14:35:45 +0000 (14:35 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 4 Sep 1997 14:35:45 +0000 (14:35 +0000)
To save time, only run the first and last 10 tests except in verbose mode.

Lib/test/test_re.py

index c4b21cf72aab125176b5b07fd6a7177611d993ef..48ba5032664b4e2d65288033522b21892bab4b07 100644 (file)
@@ -122,6 +122,9 @@ except AssertionError:
 from re_tests import *
 if verbose:
     print 'Running re_tests test suite'
+else:
+    # To save time, only run the first and last 10 tests
+    tests = tests[:10] + tests[-10:]
 
 for t in tests:
     sys.stdout.flush()