Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents.

This commit is contained in:
Georg Brandl 2012-02-20 21:36:28 +01:00
parent a86b262d1e
commit 242631da86

View file

@ -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):