Skip to content

Commit d9a2e70

Browse files
committed
Change LsofFdLeakChecker to emit a warning instead of failing when detecting leaked FDs
Related to #2366
1 parent 7317767 commit d9a2e70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_pytest/pytester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ def pytest_runtest_protocol(self, item):
107107
error.extend([str(f) for f in lines2])
108108
error.append(error[0])
109109
error.append("*** function %s:%s: %s " % item.location)
110-
pytest.fail("\n".join(error), pytrace=False)
110+
error.append("See issue #2366")
111+
item.warn('', "\n".join(error))
111112

112113

113114
# XXX copied from execnet's conftest.py - needs to be merged

0 commit comments

Comments
 (0)