diff options
author | Georg Brandl <georg@python.org> | 2012-02-20 20:36:28 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-02-20 20:36:28 (GMT) |
commit | 242631da860fc94eafa86ff50d219cfd9dfded3e (patch) | |
tree | bd646da9020315493fcd656884a499ac1e01ca2b | |
parent | a86b262d1e8b98de5c8f6781cc30eef0b0c98ddc (diff) | |
download | cpython-242631da860fc94eafa86ff50d219cfd9dfded3e.zip cpython-242631da860fc94eafa86ff50d219cfd9dfded3e.tar.gz cpython-242631da860fc94eafa86ff50d219cfd9dfded3e.tar.bz2 |
Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents.
-rw-r--r-- | Lib/test/test_strlit.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |