Skip to content

Commit

Permalink
Disable curses tests in --fast-ci mode (make test)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Dec 13, 2023
1 parent 329dead commit f1998c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def _parse_args(args, **kwargs):
# Similar to: -u "all,-cpu" --timeout=600
if ns.use is None:
ns.use = []
ns.use.insert(0, ['all', '-cpu'])
ns.use.insert(0, ['all', '-cpu', '-curses'])
if ns.timeout is None:
ns.timeout = 600 # 10 minutes

Expand Down
3 changes: 3 additions & 0 deletions Lib/test/test_regrtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,15 @@ def test_fast_ci(self):
args = ['--fast-ci']
use_resources = sorted(cmdline.ALL_RESOURCES)
use_resources.remove('cpu')
use_resources.remove('curses')
regrtest = self.check_ci_mode(args, use_resources)
self.assertEqual(regrtest.timeout, 10 * 60)

def test_fast_ci_python_cmd(self):
args = ['--fast-ci', '--python', 'python -X dev']
use_resources = sorted(cmdline.ALL_RESOURCES)
use_resources.remove('cpu')
use_resources.remove('curses')
regrtest = self.check_ci_mode(args, use_resources, rerun=False)
self.assertEqual(regrtest.timeout, 10 * 60)
self.assertEqual(regrtest.python_cmd, ('python', '-X', 'dev'))
Expand All @@ -441,6 +443,7 @@ def test_fast_ci_resource(self):
args = ['--fast-ci', '-u-network']
use_resources = sorted(cmdline.ALL_RESOURCES)
use_resources.remove('cpu')
use_resources.remove('curses')
use_resources.remove('network')
self.check_ci_mode(args, use_resources)

Expand Down

0 comments on commit f1998c0

Please sign in to comment.