cpython/Lib/test/libregrtest
Jeremy Kloth 8146e6b636
bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578)
Replace the child process `typeperf.exe` with a daemon thread that reads the performance counters directly.  This prevents the issues that arise from inherited handles in grandchild processes (see issue37531 for discussion).

We only use the load tracker when running tests in multiprocess mode. This prevents inadvertent interactions with tests expecting a single threaded environment.  Displaying load is really only helpful for buildbots running in multiprocess mode anyway.

Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
2022-03-22 17:21:24 +00:00
..
__init__.py bpo-37473: Don't import importlib ASAP in tests (GH-14661) 2019-07-14 19:31:12 +02:00
cmdline.py bpo-44708: Only re-run test methods that match names of previously failing test methods (GH-27287) (GH-27290) 2021-07-22 22:30:44 +02:00
main.py bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) 2022-03-22 17:21:24 +00:00
pgo.py bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917) 2021-02-26 14:51:55 -08:00
refleak.py [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804) 2021-10-07 11:49:47 -04:00
runtest.py bpo-44708: Only re-run test methods that match names of previously failing test methods (GH-27287) (GH-27290) 2021-07-22 22:30:44 +02:00
runtest_mp.py bpo-46205: exit if no workers are alive in runtest_mp (GH-30470) 2022-01-10 19:29:31 -08:00
save_env.py bpo-41718: regrtest saved_test_environment avoids imports (GH-24934) 2021-03-22 23:52:13 +01:00
setup.py bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127) 2021-10-21 21:47:07 -07:00
utils.py bpo-43843: libregrtest uses threading.excepthook (GH-25400) 2021-04-16 14:33:10 +02:00
win_utils.py bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) 2022-03-22 17:21:24 +00:00