summaryrefslogtreecommitdiff
path: root/Lib/unittest/test/testmock/testasync.py
diff options
context:
space:
mode:
authorJeremy Kloth <jeremy.kloth@gmail.com>2022-03-21 18:06:55 -0600
committerGitHub <noreply@github.com>2022-03-22 00:06:55 +0000
commit19058b9f6271338bcc46b7d30fe79a83990cc35c (patch)
tree876638d2822c22dd03ccbe304c8febd670397aff /Lib/unittest/test/testmock/testasync.py
parent9ac2de922a0f783bd43b8e026e4fb70fd1888572 (diff)
downloadcpython-git-19058b9f6271338bcc46b7d30fe79a83990cc35c.tar.gz
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.
Diffstat (limited to 'Lib/unittest/test/testmock/testasync.py')
0 files changed, 0 insertions, 0 deletions