add changelog entry for some PRs: improvements to pytest's own
test-suite leakage detection, courtesy of PRs from Marc Abramowitz
This commit is contained in:
parent
21b4280126
commit
72b4534a0c
|
@ -32,6 +32,9 @@ NEXT (2.6)
|
||||||
against tests or setups changing FD1/FD2, also better integrated
|
against tests or setups changing FD1/FD2, also better integrated
|
||||||
now with pytest.pdb() in single tests.
|
now with pytest.pdb() in single tests.
|
||||||
|
|
||||||
|
- improvements to pytest's own test-suite leakage detection, courtesy of PRs
|
||||||
|
from Marc Abramowitz
|
||||||
|
|
||||||
2.5.2
|
2.5.2
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ def check_open_files(config):
|
||||||
open_files = [t for t in lines2 if t[0] in new_fds]
|
open_files = [t for t in lines2 if t[0] in new_fds]
|
||||||
if open_files:
|
if open_files:
|
||||||
error = []
|
error = []
|
||||||
error.append("***** %s FD leackage detected" % len(open_files))
|
error.append("***** %s FD leakage detected" % len(open_files))
|
||||||
error.extend([str(f) for f in open_files])
|
error.extend([str(f) for f in open_files])
|
||||||
error.append("*** Before:")
|
error.append("*** Before:")
|
||||||
error.extend([str(f) for f in config._openfiles])
|
error.extend([str(f) for f in config._openfiles])
|
||||||
|
|
Loading…
Reference in New Issue