Skip to content

Commit a966694

Browse files
committed
Fix bad refactor.
1 parent b032958 commit a966694

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_pytest_cov.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,17 +1312,17 @@ def test_cover_conftest(testdir):
13121312

13131313

13141314
@pytest.mark.skipif('sys.platform == "win32" and platform.python_implementation() == "PyPy"')
1315-
def test_cover_looponfail(pytester, testdir, monkeypatch):
1315+
def test_cover_looponfail(testdir, monkeypatch):
13161316
testdir.makepyfile(mod=MODULE)
13171317
testdir.makeconftest(CONFTEST)
13181318
script = testdir.makepyfile(BASIC_TEST)
13191319

13201320
def mock_run(*args, **kwargs):
13211321
return _TestProcess(*map(str, args))
13221322

1323-
monkeypatch.setattr(pytester, testdir, 'run', mock_run)
1323+
monkeypatch.setattr(testdir, 'run', mock_run)
13241324
assert testdir.run is mock_run
1325-
if hasattr(pytester, testdir, '_pytester'):
1325+
if hasattr(testdir, '_pytester'):
13261326
monkeypatch.setattr(testdir._pytester, 'run', mock_run)
13271327
assert testdir._pytester.run is mock_run
13281328
with testdir.runpytest('-v',

0 commit comments

Comments
 (0)