gh-154137: Check for Windows handle leaks in regrtest#154140
Conversation
Add handle_count() to test.support.os_helper.
|
I found a leak when running tests on Windows using
I can reproduce at least one of these leaks by running |
|
test_socket leaks 1 handle: |
|
TODO: Update |
I cannot identify the leaking test by running |
|
!buildbot AMD64 Windows11 Refleaks PR |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 37c29f3 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F154140%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
Ah, test_pathlib fails on Windows. I will fix later. First, I'm waiting for Windows11 Refleaks buildbot report. |
|
Oh, it seems like
|
|
Aaaand last but not least:
|
Reuse os_helper.handle_count() in test_os.test_windows.
|
!buildbot AMD64 Windows11 Refleaks PR |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit e66fb14 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F154140%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
Done.
Fixed by PR gh-154201.
I created issue gh-154208 to investigate this leak. |
Add handle_count() to test.support.os_helper.