diff options
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 20444b7..6935798 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -41,7 +41,7 @@ class HelperFunctionsTests(unittest.TestCase): def tearDown(self): """Restore sys.path""" - sys.path = self.sys_path + sys.path[:] = self.sys_path site.USER_BASE = self.old_base site.USER_SITE = self.old_site site.PREFIXES = self.old_prefixes @@ -247,7 +247,7 @@ class ImportSideEffectTests(unittest.TestCase): def tearDown(self): """Restore sys.path""" - sys.path = self.sys_path + sys.path[:] = self.sys_path def test_abs__file__(self): # Make sure all imported modules have their __file__ attribute |