Commit a0e0f9ed authored by Nick Coghlan's avatar Nick Coghlan

Don't replace sys.path in test_site

parent 788d7667
...@@ -41,7 +41,7 @@ class HelperFunctionsTests(unittest.TestCase): ...@@ -41,7 +41,7 @@ class HelperFunctionsTests(unittest.TestCase):
def tearDown(self): def tearDown(self):
"""Restore sys.path""" """Restore sys.path"""
sys.path = self.sys_path sys.path[:] = self.sys_path
site.USER_BASE = self.old_base site.USER_BASE = self.old_base
site.USER_SITE = self.old_site site.USER_SITE = self.old_site
site.PREFIXES = self.old_prefixes site.PREFIXES = self.old_prefixes
...@@ -248,7 +248,7 @@ class ImportSideEffectTests(unittest.TestCase): ...@@ -248,7 +248,7 @@ class ImportSideEffectTests(unittest.TestCase):
def tearDown(self): def tearDown(self):
"""Restore sys.path""" """Restore sys.path"""
sys.path = self.sys_path sys.path[:] = self.sys_path
def test_abs__file__(self): def test_abs__file__(self):
# Make sure all imported modules have their __file__ attribute # Make sure all imported modules have their __file__ attribute
......
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