Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Fixed a few more cases of the tests not properly restoring sy…

…s.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
  • Loading branch information...
commit 5b78abeba795364e0f90448d9f51c255d0708394 1 parent a24ccfc
@alex alex authored
View
2  tests/modeltests/proxy_model_inheritance/tests.py
@@ -17,7 +17,7 @@
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')
View
2  tests/regressiontests/templates/tests.py
@@ -1356,7 +1356,7 @@ def get_template_tests(self):
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
View
2  tests/regressiontests/utils/module_loading.py
@@ -26,7 +26,7 @@ def test_loader(self):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.