diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-02 05:28:12 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-02 05:28:12 +0000 |
| commit | a24ccfc79f94ce2e42bffd945539c320cfd058c8 (patch) | |
| tree | 55bc3b1d1672d445838edcced9c190bce427ab12 | |
| parent | 3cfde8364be4f12e59e77dcd656e394236681ea8 (diff) | |
[1.2.X] Properly handle the fact that lists are mutable when trying to 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
| -rw-r--r-- | tests/regressiontests/app_loading/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/app_loading/tests.py b/tests/regressiontests/app_loading/tests.py index d43cfafaac..17fe08b299 100644 --- a/tests/regressiontests/app_loading/tests.py +++ b/tests/regressiontests/app_loading/tests.py @@ -10,7 +10,7 @@ from django.db.models.loading import cache, load_app 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 @@ class InstalledAppsGlobbingTest(TestCase): 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 |
