parent
d163d92b33
commit
e09e7148a3
|
@ -68,10 +68,9 @@ def pytest_funcarg__monkeypatch(request):
|
||||||
monkeypatch.syspath_prepend(path)
|
monkeypatch.syspath_prepend(path)
|
||||||
|
|
||||||
All modifications will be undone when the requesting
|
All modifications will be undone when the requesting
|
||||||
test function finished its execution. For the ``del``
|
test function finished its execution. The ``raising``
|
||||||
methods the ``raising`` parameter determines if a
|
parameter determines if a KeyError or AttributeError
|
||||||
KeyError or AttributeError will be raised if the
|
will be raised if the set/deletion operation has no target.
|
||||||
deletion has no target.
|
|
||||||
"""
|
"""
|
||||||
monkeypatch = MonkeyPatch()
|
monkeypatch = MonkeyPatch()
|
||||||
request.addfinalizer(monkeypatch.undo)
|
request.addfinalizer(monkeypatch.undo)
|
||||||
|
|
Loading…
Reference in New Issue