fix FD leakage during pytest's own test run and add "--lsof" option to tox default test runs.

the leakage came down to a problematic bit of the stdlib logging module: it takes ownerships of stdout/stderr making it hard for pytest to implement clean capturing.  The current work around is to add some extra code in the setup machinery of pytest's own tests which actually closes sub-FDs.
This commit is contained in:
holger krekel
2011-11-06 15:40:17 +00:00
parent 761a95e542
commit d4fe273b2f
6 changed files with 14 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ indexserver=
[testenv]
changedir=testing
commands= py.test -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
commands= py.test --lsof -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
deps=
:pypi:pexpect
:pypi:nose