8000 Disable curses tests in --fast-ci mode (make test) · python/cpython@f1998c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1998c0

Browse files
committed
Disable curses tests in --fast-ci mode (make test)
1 parent 329dead commit f1998c0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/test/libregrtest/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def _parse_args(args, **kwargs):
442442
# Similar to: -u "all,-cpu" --timeout=600
443443
if ns.use is None:
444444
ns.use = []
445-
ns.use.insert(0, ['all', '-cpu'])
445+
ns.use.insert(0, ['all', '-cpu', '-curses'])
446446
if ns.timeout is None:
447447
ns.timeout = 600 # 10 minutes
448448

Lib/test/test_regrtest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,15 @@ def test_fast_ci(self):
425425
args = ['--fast-ci']
426426
use_resources = sorted(cmdline.ALL_RESOURCES)
427427
use_resources.remove('cpu')
428+
use_resources.remove('curses')
428429
regrtest = self.check_ci_mode(args, use_resources)
429430
self.assertEqual(regrtest.timeout, 10 * 60)
430431

431432
def test_fast_ci_python_cmd(self):
432433
args = ['--fast-ci', '--python', 'python -X dev']
433434
use_resources = sorted(cmdline.ALL_RESOURCES)
434435
use_resources.remove('cpu')
436+
use_resources.remove('curses')
435437
regrtest = self.check_ci_mode(args, use_resources, rerun=False)
436438
self.assertEqual(regrtest.timeout, 10 * 60)
437439
self.assertEqual(regrtest.python_cmd, ('python', '-X', 'dev'))
@@ -441,6 +443,7 @@ def test_fast_ci_resource(self):
441443
args = ['--fast-ci', '-u-network']
442444
use_resources = sorted(cmdline.ALL_RESOURCES)
443445
use_resources.remove('cpu')
446+
use_resources.remove('curses')
444447
use_resources.remove('network')
445448
self.check_ci_mode(args, use_resources)
446449

0 commit comments

Comments
 (0)
0