Change LsofFdLeakChecker to emit a warning instead of failing when detecting leaked FDs

Related to #2366
This commit is contained in:
Bruno Oliveira
2017-04-13 17:34:48 -03:00
parent 731776702d
commit d9a2e70155

View File

@@ -107,7 +107,8 @@ class LsofFdLeakChecker(object):
error.extend([str(f) for f in lines2])
error.append(error[0])
error.append("*** function %s:%s: %s " % item.location)
pytest.fail("\n".join(error), pytrace=False)
error.append("See issue #2366")
item.warn('', "\n".join(error))
# XXX copied from execnet's conftest.py - needs to be merged