make sure calling undo a second time doesn't change sys.path

This commit is contained in:
Ralf Schmitt
2012-01-04 12:42:23 +01:00
parent 4131923c0f
commit fb7706d4c7

View File

@@ -104,3 +104,4 @@ class monkeypatch:
self._setitem[:] = []
if hasattr(self, '_savesyspath'):
sys.path[:] = self._savesyspath
del self._savesyspath