cleanup PYTEST_ADDOPTS for pytest subprocess
See https://github.com/qutebrowser/qutebrowser/pull/3349
This commit is contained in:
parent
fbd325f8d1
commit
38b2d42b40
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user