Fix lint.

This commit is contained in:
Florian Bruhin 2015-09-09 07:54:52 +02:00
parent 66ed4e9c4e
commit 909cafb516

View File

@ -30,13 +30,11 @@ import pytest_capturelog # pylint: disable=import-error
pytest_plugins = 'pytester'
@pytest.fixture
def log_testdir(testdir):
"""Testdir which uses our logfail.py as a conftest."""
log_fn = os.path.join(os.path.dirname(__file__), 'logfail.py')
with open(log_fn) as f:
with open(log_fn, encoding='utf-8') as f:
testdir.makeconftest(f.read())
return testdir