cpython/Lib/test/support/refleak_helper.py
Ronald Oussoren 5adff3f86f
gh-80931: Skip some socket tests while hunting for refleaks on macOS (#114057)
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.
2024-01-21 11:25:15 +01:00

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