Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 89219a6829d439c65f785f6603bbb91546944590 1 parent 7dfefa7
Alex Gaynor authored November 02, 2010
2  tests/modeltests/proxy_model_inheritance/tests.py
@@ -17,7 +17,7 @@
17 17
 class ProxyModelInheritanceTests(TransactionTestCase):
18 18
 
19 19
     def setUp(self):
20  
-        self.old_sys_path = sys.path
  20
+        self.old_sys_path = sys.path[:]
21 21
         sys.path.append(os.path.dirname(os.path.abspath(__file__)))
22 22
         self.old_installed_apps = settings.INSTALLED_APPS
23 23
         settings.INSTALLED_APPS = ('app1', 'app2')
2  tests/regressiontests/templates/tests.py
@@ -1356,7 +1356,7 @@ def get_template_tests(self):
1356 1356
 class TemplateTagLoading(unittest.TestCase):
1357 1357
 
1358 1358
     def setUp(self):
1359  
-        self.old_path = sys.path
  1359
+        self.old_path = sys.path[:]
1360 1360
         self.old_apps = settings.INSTALLED_APPS
1361 1361
         self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
1362 1362
         self.old_tag_modules = template.templatetags_modules
2  tests/regressiontests/utils/module_loading.py
@@ -27,7 +27,7 @@ def test_loader(self):
27 27
 
28 28
 class EggLoader(unittest.TestCase):
29 29
     def setUp(self):
30  
-        self.old_path = sys.path
  30
+        self.old_path = sys.path[:]
31 31
         self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
32 32
 
33 33
     def tearDown(self):

0 notes on commit 89219a6

Please sign in to comment.
Something went wrong with that request. Please try again.