summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-11-02 05:31:53 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-11-02 05:31:53 +0000
commit5b78abeba795364e0f90448d9f51c255d0708394 (patch)
tree8d5a5b11f9605ded73281b9ca4faf2292147783f /tests
parenta24ccfc79f94ce2e42bffd945539c320cfd058c8 (diff)
[1.2.X] Fixed a few more cases of the tests not properly restoring sys.path (follow up on [14430]). Backport of [14431].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/proxy_model_inheritance/tests.py2
-rw-r--r--tests/regressiontests/templates/tests.py2
-rw-r--r--tests/regressiontests/utils/module_loading.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/modeltests/proxy_model_inheritance/tests.py
index d10d6a4ac1..b6828515ab 100644
--- a/tests/modeltests/proxy_model_inheritance/tests.py
+++ b/tests/modeltests/proxy_model_inheritance/tests.py
@@ -17,7 +17,7 @@ from django.test import TransactionTestCase
class ProxyModelInheritanceTests(TransactionTestCase):
def setUp(self):
- self.old_sys_path = sys.path
+ self.old_sys_path = sys.path[:]
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
self.old_installed_apps = settings.INSTALLED_APPS
settings.INSTALLED_APPS = ('app1', 'app2')
diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py
index cea42224dd..1dd54779b7 100644
--- a/tests/regressiontests/templates/tests.py
+++ b/tests/regressiontests/templates/tests.py
@@ -1356,7 +1356,7 @@ class Templates(unittest.TestCase):
class TemplateTagLoading(unittest.TestCase):
def setUp(self):
- self.old_path = sys.path
+ self.old_path = sys.path[:]
self.old_apps = settings.INSTALLED_APPS
self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
self.old_tag_modules = template.templatetags_modules
diff --git a/tests/regressiontests/utils/module_loading.py b/tests/regressiontests/utils/module_loading.py
index 4422f8f5d8..8cbefbb011 100644
--- a/tests/regressiontests/utils/module_loading.py
+++ b/tests/regressiontests/utils/module_loading.py
@@ -26,7 +26,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):