Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Properly handle the fact that lists are mutable when trying t…

…o maintain state in a test. Backport of [14429].

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a24ccfc79f94ce2e42bffd945539c320cfd058c8 1 parent 3cfde83
@alex alex authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/app_loading/tests.py
View
4 tests/regressiontests/app_loading/tests.py
@@ -10,7 +10,7 @@
class InstalledAppsGlobbingTest(TestCase):
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_TZ = os.environ.get("TZ")
@@ -28,7 +28,7 @@ def tearDown(self):
class EggLoadingTest(TestCase):
def setUp(self):
- self.old_path = sys.path
+ self.old_path = sys.path[:]
self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
# This test adds dummy applications to the app cache. These
Please sign in to comment.
Something went wrong with that request. Please try again.