cleanup PYTEST_ADDOPTS for pytest subprocess

See https://github.com/qutebrowser/qutebrowser/pull/3349
This commit is contained in:
Ryan Farley 2017-12-03 15:09:47 -06:00
parent fbd325f8d1
commit 38b2d42b40

View File

@ -50,6 +50,7 @@ class CovtestHelper:
def run(self):
"""Run pytest with coverage for the given module.py."""
coveragerc = str(self._testdir.tmpdir / 'coveragerc')
self._monkeypatch.delenv('PYTEST_ADDOPTS', raising=False)
return self._testdir.runpytest('--cov=module',
'--cov-config={}'.format(coveragerc),
'--cov-report=xml',