summaryrefslogtreecommitdiff
path: root/tests/regressiontests/utils/module_loading.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-11-02 05:31:19 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-11-02 05:31:19 +0000
commit89219a6829d439c65f785f6603bbb91546944590 (patch)
treefa5eed6c8b46f7ca19e68d2c772af2d8a2d98687 /tests/regressiontests/utils/module_loading.py
parent7dfefa74ca8e5b0d37a5d13f0fcde6e6f98de9a4 (diff)
Fixed a few more cases of the tests not properly restoring sys.path (follow up on [14429]).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/utils/module_loading.py')
-rw-r--r--tests/regressiontests/utils/module_loading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/utils/module_loading.py b/tests/regressiontests/utils/module_loading.py
index a9e2c7907b..cffec9bad9 100644
--- a/tests/regressiontests/utils/module_loading.py
+++ b/tests/regressiontests/utils/module_loading.py
@@ -27,7 +27,7 @@ class DefaultLoader(unittest.TestCase):
class EggLoader(unittest.TestCase):
def setUp(self):
- self.old_path = sys.path
+ self.old_path = sys.path[:]
self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
def tearDown(self):