Skip to content

Commit 1211d31

Browse files
nicoddemusionelmc
authored andcommitted
Fix flake8 error
1 parent b077753 commit 1211d31

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_pytest_cov.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1761,8 +1761,11 @@ def bad_init():
17611761
monkeypatch.setattr(sys, 'stderr', buff)
17621762
monkeypatch.setitem(os.environ, 'COV_CORE_SOURCE', 'foobar')
17631763
exec(payload)
1764-
assert buff.getvalue() == '''pytest-cov: Failed to setup subprocess coverage. Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError()
1765-
'''
1764+
expected = (
1765+
"pytest-cov: Failed to setup subprocess coverage. "
1766+
"Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError()\n"
1767+
)
1768+
assert buff.getvalue() == expected
17661769

17671770

17681771
def test_double_cov(testdir):

0 commit comments

Comments
 (0)