From 242631da860fc94eafa86ff50d219cfd9dfded3e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 20 Feb 2012 21:36:28 +0100 Subject: Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents. --- Lib/test/test_strlit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ class TestLiterals(unittest.TestCase): 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): -- cgit v0.12