fix internal test setup failure

This commit is contained in:
holger krekel 2012-06-21 11:30:10 +02:00
parent 42d44bfd43
commit e79a312b92
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ def check_open_files(config):
config._numfiles = len(lines2)
raise AssertionError("\n".join(error))
@pytest.mark.tryfirst # XXX rather do item.addfinalizer
def pytest_runtest_setup(item):
item._oldir = py.path.local()