Don't replace sys.path in test_site

This commit is contained in:
Nick Coghlan 2009-10-17 16:19:51 +00:00
parent 788d7667cb
commit a0e0f9eda4
1 changed files with 2 additions and 2 deletions

View File

@ -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
@ -248,7 +248,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