mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00

Some socket tests related to sending file descriptors cause a file descriptor leak on macOS, all of them tests that send one or more descriptors than cannot be received on the read end. This appears to be a platform bug. This PR skips those tests when doing a refleak test run to avoid hiding other problems.
8 lines
165 B
Python
8 lines
165 B
Python
"""
|
|
Utilities for changing test behaviour while hunting
|
|
for refleaks
|
|
"""
|
|
|
|
_hunting_for_refleaks = False
|
|
def hunting_for_refleaks():
|
|
return _hunting_for_refleaks
|