Commit 80ebc438 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-30822: regrtest: fix -u extralargefile (#2788)

Fix also regrtest command line parser to allow passing -u
extralargefile to run test_zipfile64.
parent 598f26b7
......@@ -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] == '-':
......
Fix regrtest command line parser to allow passing -u extralargefile to
run test_zipfile64.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment