summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2009-10-17 16:19:51 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2009-10-17 16:19:51 (GMT)
commita0e0f9eda4bf3b6ed9712a8bb992081d90249d41 (patch)
treea94a58ff5577484110632f7379c276149c188a43 /Lib/test
parent788d7667cb0c95756c296fec0f863f8870118820 (diff)
downloadcpython-a0e0f9eda4bf3b6ed9712a8bb992081d90249d41.zip
cpython-a0e0f9eda4bf3b6ed9712a8bb992081d90249d41.tar.gz
cpython-a0e0f9eda4bf3b6ed9712a8bb992081d90249d41.tar.bz2
Don't replace sys.path in test_site
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_site.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index df26422..0f87a6f 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
@@ -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