summaryrefslogtreecommitdiff
path: root/tests/contrib/cache/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/contrib/cache/conftest.py')
-rw-r--r--tests/contrib/cache/conftest.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/contrib/cache/conftest.py b/tests/contrib/cache/conftest.py
index cb651098..655f0fa6 100644
--- a/tests/contrib/cache/conftest.py
+++ b/tests/contrib/cache/conftest.py
@@ -4,10 +4,7 @@ import pytest
# build the path to the uwsgi marker file
# when running in tox, this will be relative to the tox env
-filename = os.path.join(
- os.environ.get('TOX_ENVTMPDIR', ''),
- 'test_uwsgi_failed'
-)
+filename = os.path.join(os.environ.get("TOX_ENVTMPDIR", ""), "test_uwsgi_failed")
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
@@ -20,9 +17,9 @@ def pytest_runtest_makereport(item, call):
outcome = yield
report = outcome.get_result()
- if item.cls.__name__ != 'TestUWSGICache':
+ if item.cls.__name__ != "TestUWSGICache":
return
if report.failed:
- with open(filename, 'a') as f:
- f.write(item.name + '\n')
+ with open(filename, "a") as f:
+ f.write(item.name + "\n")