From 1211d3134bb74abb7b00c3c2209091aaab440417 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 31 Jul 2022 12:57:39 -0300 Subject: [PATCH] Fix flake8 error --- tests/test_pytest_cov.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py index 4402fc7b..10d2bd58 100644 --- a/tests/test_pytest_cov.py +++ b/tests/test_pytest_cov.py @@ -1761,8 +1761,11 @@ def bad_init(): monkeypatch.setattr(sys, 'stderr', buff) monkeypatch.setitem(os.environ, 'COV_CORE_SOURCE', 'foobar') exec(payload) - assert buff.getvalue() == '''pytest-cov: Failed to setup subprocess coverage. Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError() -''' + expected = ( + "pytest-cov: Failed to setup subprocess coverage. " + "Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError()\n" + ) + assert buff.getvalue() == expected def test_double_cov(testdir):