diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py index 81c7106ac0c0f4..45d7015cc78b52 100644 --- a/Lib/test/libregrtest/cmdline.py +++ b/Lib/test/libregrtest/cmdline.py @@ -122,6 +122,9 @@ tzdata - Run tests that require timezone data. + idle - Run tests that require an otherwise idle system as + they are sensitive to timing. + To enable all resources except one, use '-uall,-'. For example, to run all the tests except for the gui tests, give the option '-uall,-gui'. diff --git a/Lib/test/libregrtest/utils.py b/Lib/test/libregrtest/utils.py index 3eff9e753b6d84..1b0226108d17f5 100644 --- a/Lib/test/libregrtest/utils.py +++ b/Lib/test/libregrtest/utils.py @@ -33,7 +33,7 @@ ALL_RESOURCES = ('audio', 'curses', 'largefile', 'network', - 'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui', 'walltime') + 'decimal', 'cpu', 'subprocess', 'urlfetch', 'gui', 'walltime', 'idle') # Other resources excluded from --use=all: # diff --git a/Misc/NEWS.d/next/Tests/2025-02-24-12-50-56.gh-issue-130363.zeM6ig.rst b/Misc/NEWS.d/next/Tests/2025-02-24-12-50-56.gh-issue-130363.zeM6ig.rst new file mode 100644 index 00000000000000..34307b908c681f --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-02-24-12-50-56.gh-issue-130363.zeM6ig.rst @@ -0,0 +1,2 @@ +Add the ``idle`` resource for flagging tests that need an idle system as +they're sensitive to timing.