From d807b7589b6dc26057e9754358335183ce9f7a7a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 4 Sep 1997 14:35:45 +0000 Subject: [PATCH] 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. --- Lib/test/test_re.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index c4b21cf72aa..48ba5032664 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -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()