Skip to content
Merged
Prev Previous commit
Next Next commit
Address code review
  • Loading branch information
corona10 committed Mar 12, 2024
commit 0f1899ec37105e9abb153b1a57390eedc317db76
7 changes: 0 additions & 7 deletions Doc/library/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,6 @@ The :mod:`test.support` module defines the following constants:
Set to the ``data`` directory within the test package.


.. data:: TSAN

Set when tests can be skipped when they are not useful for ThreadSanitizer.

.. versionadded:: 3.13


.. data:: MAX_Py_ssize_t

Set to :data:`sys.maxsize` for big memory tests.
Expand Down
5 changes: 1 addition & 4 deletions Lib/test/libregrtest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ def __init__(self, ns: Namespace, _add_python_opts: bool = False):

# Workers
if ns.use_mp is None:
if ns.tsan:
num_workers = -1 # use the number of CPUs
else:
num_workers = 0 # run sequentially
num_workers = 0 # run sequentially
elif ns.use_mp <= 0:
num_workers = -1 # use the number of CPUs
else:
Expand Down
3 changes: 0 additions & 3 deletions Lib/test/libregrtest/tsan.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
'test_importlib',
'test_io',
'test_logging',
'test_tuple',
'test_list',
'test_dict',
'test_ssl',
'test_syslog',
'test_thread',
Expand Down