mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents.
This commit is contained in:
parent
a86b262d1e
commit
242631da86
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue