diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-07-21 00:12:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 00:12:14 (GMT) |
commit | 80ebc438ed377f8c6491e8887425526c6787c0e7 (patch) | |
tree | d58724c3351b4df7f8c64092513cbbe7ce581404 /Lib | |
parent | 598f26b788ef666cced17a118d6a65d6210e3ccc (diff) | |
download | cpython-80ebc438ed377f8c6491e8887425526c6787c0e7.zip cpython-80ebc438ed377f8c6491e8887425526c6787c0e7.tar.gz cpython-80ebc438ed377f8c6491e8887425526c6787c0e7.tar.bz2 |
bpo-30822: regrtest: fix -u extralargefile (#2788)
Fix also regrtest command line parser to allow passing -u
extralargefile to run test_zipfile64.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/regrtest.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index fc4681f..7a48475 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -250,9 +250,15 @@ PROGRESS_UPDATE = 30.0 # seconds from test import test_support -RESOURCE_NAMES = ('audio', 'curses', 'largefile', 'network', 'bsddb', - 'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui', - 'xpickle') +ALL_RESOURCES = ('audio', 'curses', 'largefile', 'network', 'bsddb', + 'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui', + 'xpickle') + +# Other resources excluded from --use=all: +# +# - extralagefile (ex: test_zipfile64): really too slow to be enabled +# "by default" +RESOURCE_NAMES = ALL_RESOURCES + ('extralargefile',) TEMPDIR = os.path.abspath(tempfile.gettempdir()) @@ -420,7 +426,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, u = [x.lower() for x in a.split(',')] for r in u: if r == 'all': - use_resources[:] = RESOURCE_NAMES + use_resources[:] = ALL_RESOURCES continue remove = False if r[0] == '-': |