Skip to content

gh-130363: add a test resource to mark tests that need an idle system #130508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Lib/test/libregrtest/cmdline.py
Original file line number Diff line number Diff line change
@@ -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,-<resource>'. For
example, to run all the tests except for the gui tests, give the
option '-uall,-gui'.
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/utils.py
Original file line number Diff line number Diff line change
@@ -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:
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add the ``idle`` resource for flagging tests that need an idle system as
they're sensitive to timing.