Commit 242631da authored by Georg Brandl's avatar Georg Brandl

Fix "sys.path modified" warning in test_strlit, by not replacing sys.path...

Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents.
parent a86b262d
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment