diff options
author | victor <victor.maryama@typhoon-hil.com> | 2018-08-19 15:46:02 +0200 |
---|---|---|
committer | victor <victor.maryama@typhoon-hil.com> | 2018-08-19 15:46:02 +0200 |
commit | 7ea4992f169edf84eec10735be688523759d4543 (patch) | |
tree | 85bd682f44b3ee8d47b88006d9ea506dd885f8a9 /testing/test_capture.py | |
parent | 0564b52c0e1ecdce87b98f902091f3e06a01cc13 (diff) | |
download | pytest-7ea4992f169edf84eec10735be688523759d4543.tar.gz |
Fixed linting.
Diffstat (limited to 'testing/test_capture.py')
-rw-r--r-- | testing/test_capture.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/testing/test_capture.py b/testing/test_capture.py index 626c4414a..ec8c682e2 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -1396,7 +1396,8 @@ def test_capture_with_live_logging(testdir): # capture should work with live cli logging # Teardown report seems to have the capture for the whole process (setup, capture, teardown) - testdir.makeconftest(""" + testdir.makeconftest( + """ def pytest_runtest_logreport(report): if "test_global" in report.nodeid: if report.when == "teardown": @@ -1404,7 +1405,8 @@ def test_capture_with_live_logging(testdir): f.write(report.caplog) with open("capstdout", "w") as f: f.write(report.capstdout) - """) + """ + ) testdir.makepyfile( """ @@ -1413,7 +1415,7 @@ def test_capture_with_live_logging(testdir): import pytest logger = logging.getLogger(__name__) - + @pytest.fixture def fix1(): print("fix setup") |