summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-04 14:35:45 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-04 14:35:45 (GMT)
commitd807b7589b6dc26057e9754358335183ce9f7a7a (patch)
treeb940ec2c4f28ea72993e2a9994a6154d0077f08f /Lib/test/test_re.py
parentc7736b9d49b56bf9376fcccfb852357a362fb782 (diff)
downloadcpython-d807b7589b6dc26057e9754358335183ce9f7a7a.zip
cpython-d807b7589b6dc26057e9754358335183ce9f7a7a.tar.gz
cpython-d807b7589b6dc26057e9754358335183ce9f7a7a.tar.bz2
The re test suite is very slow on slower hosts.
To save time, only run the first and last 10 tests except in verbose mode.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index c4b21cf..48ba503 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -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()