Skip to content
Prev Previous commit
Next Next commit
lint
  • Loading branch information
corona10 committed Mar 11, 2024
commit 2df350233ef16663c1fd9a65bdd6fc428c4ca8bc
4 changes: 2 additions & 2 deletions Lib/test/libregrtest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def __init__(self, ns: Namespace, _add_python_opts: bool = False):
if ns.tsan:
# For TSAN tests, use number of CPU of the current process.
Comment thread
corona10 marked this conversation as resolved.
Outdated
#
# os.process.cpu_count() is new in Python 3.13;
# mypy doesn't know about it yet
# os.process.cpu_count() is new in Python 3.13;
# mypy doesn't know about it yet
num_workers = os.process_cpu_count() # type: ignore[attr-defined]
else:
num_workers = 0 # run sequentially
Expand Down