Skip to content

Commit

Permalink
Fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus authored and ionelmc committed Sep 22, 2022
1 parent b077753 commit 1211d31
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_pytest_cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1211d31

Please sign in to comment.