diff --git a/_pytest/monkeypatch.py b/_pytest/monkeypatch.py index 84cace731..fe54e63af 100644 --- a/_pytest/monkeypatch.py +++ b/_pytest/monkeypatch.py @@ -104,3 +104,4 @@ class monkeypatch: self._setitem[:] = [] if hasattr(self, '_savesyspath'): sys.path[:] = self._savesyspath + del self._savesyspath