Skip to content

Commit 80ebc43

Browse files
authored
bpo-30822: regrtest: fix -u extralargefile (#2788)
Fix also regrtest command line parser to allow passing -u extralargefile to run test_zipfile64.
1 parent 598f26b commit 80ebc43

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Lib/test/regrtest.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,15 @@
250250

251251
from test import test_support
252252

253-
RESOURCE_NAMES = ('audio', 'curses', 'largefile', 'network', 'bsddb',
254-
'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui',
255-
'xpickle')
253+
ALL_RESOURCES = ('audio', 'curses', 'largefile', 'network', 'bsddb',
254+
'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui',
255+
'xpickle')
256+
257+
# Other resources excluded from --use=all:
258+
#
259+
# - extralagefile (ex: test_zipfile64): really too slow to be enabled
260+
# "by default"
261+
RESOURCE_NAMES = ALL_RESOURCES + ('extralargefile',)
256262

257263
TEMPDIR = os.path.abspath(tempfile.gettempdir())
258264

@@ -420,7 +426,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
420426
u = [x.lower() for x in a.split(',')]
421427
for r in u:
422428
if r == 'all':
423-
use_resources[:] = RESOURCE_NAMES
429+
use_resources[:] = ALL_RESOURCES
424430
continue
425431
remove = False
426432
if r[0] == '-':
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix regrtest command line parser to allow passing -u extralargefile to
2+
run test_zipfile64.

0 commit comments

Comments
 (0)