Skip to content

Commit

Permalink
Add thread_unsafe to __all__ and test.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Dec 16, 2024
1 parent ff6b286 commit 2813375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Doc/library/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,11 @@ The :mod:`test.support` module defines the following functions:
Decorator for invoking :func:`check_impl_detail` on *guards*. If that
returns ``False``, then uses *msg* as the reason for skipping the test.

.. decorator:: thread_unsafe(reason=None)

Decorator for marking tests as thread-unsafe. This test always runs in one
thread even when invoked with ``--parallel-threads``.


.. decorator:: no_tracing

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"anticipate_failure", "load_package_tests", "detect_api_mismatch",
"check__all__", "skip_if_buggy_ucrt_strfptime",
"check_disallow_instantiation", "check_sanitizer", "skip_if_sanitizer",
"requires_limited_api", "requires_specialization",
"requires_limited_api", "requires_specialization", "thread_unsafe",
# sys
"MS_WINDOWS", "is_jython", "is_android", "is_emscripten", "is_wasi",
"is_apple_mobile", "check_impl_detail", "unix_shell", "setswitchinterval",
Expand Down

0 comments on commit 2813375

Please sign in to comment.