commit | 242631da860fc94eafa86ff50d219cfd9dfded3e | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Feb 20 21:36:28 2012 +0100 |
committer | Georg Brandl <georg@python.org> | Mon Feb 20 21:36:28 2012 +0100 |
tree | bd646da9020315493fcd656884a499ac1e01ca2b | |
parent | a86b262d1e8b98de5c8f6781cc30eef0b0c98ddc [diff] [blame] |
Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents.
diff --git a/Lib/test/test_strlit.py b/Lib/test/test_strlit.py index 30475a4..6bdc6e4 100644 --- a/Lib/test/test_strlit.py +++ b/Lib/test/test_strlit.py
@@ -65,7 +65,7 @@ sys.path.insert(0, self.tmpdir) def tearDown(self): - sys.path = self.save_path + sys.path[:] = self.save_path shutil.rmtree(self.tmpdir, ignore_errors=True) def test_template(self):