We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b077753 commit 1211d31Copy full SHA for 1211d31
tests/test_pytest_cov.py
@@ -1761,8 +1761,11 @@ def bad_init():
1761
monkeypatch.setattr(sys, 'stderr', buff)
1762
monkeypatch.setitem(os.environ, 'COV_CORE_SOURCE', 'foobar')
1763
exec(payload)
1764
- assert buff.getvalue() == '''pytest-cov: Failed to setup subprocess coverage. Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError()
1765
-'''
+ expected = (
+ "pytest-cov: Failed to setup subprocess coverage. "
1766
+ "Environ: {'COV_CORE_SOURCE': 'foobar'} Exception: SpecificError()\n"
1767
+ )
1768
+ assert buff.getvalue() == expected
1769
1770
1771
def test_double_cov(testdir):
0 commit comments