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.
This commit is contained in:
Guido van Rossum 1997-09-04 14:35:45 +00:00
parent c7736b9d49
commit d807b7589b
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ def bump_num(matchobj):
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()