make sure calling undo a second time doesn't change sys.path
This commit is contained in:
parent
4131923c0f
commit
fb7706d4c7
|
@ -104,3 +104,4 @@ class monkeypatch:
|
||||||
self._setitem[:] = []
|
self._setitem[:] = []
|
||||||
if hasattr(self, '_savesyspath'):
|
if hasattr(self, '_savesyspath'):
|
||||||
sys.path[:] = self._savesyspath
|
sys.path[:] = self._savesyspath
|
||||||
|
del self._savesyspath
|
||||||
|
|
Loading…
Reference in New Issue