Revert all invocation-fixtures code
Due to a serious regression found in #1794, it was decided to pull off invocation features from 3.0 so it can be (hopefully) re-introduced in 3.1
This commit is contained in:
@@ -10,7 +10,7 @@ import pytest
|
||||
RE_IMPORT_ERROR_NAME = re.compile("^No module named (.*)$")
|
||||
|
||||
|
||||
@pytest.fixture(scope='invocation')
|
||||
@pytest.fixture
|
||||
def monkeypatch(request):
|
||||
"""The returned ``monkeypatch`` fixture provides these
|
||||
helper methods to modify objects, dictionaries or os.environ::
|
||||
@@ -28,8 +28,6 @@ def monkeypatch(request):
|
||||
test function or fixture has finished. The ``raising``
|
||||
parameter determines if a KeyError or AttributeError
|
||||
will be raised if the set/deletion operation has no target.
|
||||
|
||||
This fixture is ``invocation``-scoped.
|
||||
"""
|
||||
mpatch = MonkeyPatch()
|
||||
request.addfinalizer(mpatch.undo)
|
||||
|
||||
Reference in New Issue
Block a user