From fb7706d4c7141b02dd14eb8a4ed2a5ec9bc88aa2 Mon Sep 17 00:00:00 2001 From: Ralf Schmitt Date: Wed, 4 Jan 2012 12:42:23 +0100 Subject: [PATCH] make sure calling undo a second time doesn't change sys.path --- _pytest/monkeypatch.py | 1 + 1 file changed, 1 insertion(+) 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