summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 20:36:28 (GMT)
committerGeorg Brandl <georg@python.org>2012-02-20 20:36:28 (GMT)
commit242631da860fc94eafa86ff50d219cfd9dfded3e (patch)
treebd646da9020315493fcd656884a499ac1e01ca2b
parenta86b262d1e8b98de5c8f6781cc30eef0b0c98ddc (diff)
downloadcpython-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.py2
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):