diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-02 05:27:24 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-02 05:27:24 +0000 |
| commit | 7dfefa74ca8e5b0d37a5d13f0fcde6e6f98de9a4 (patch) | |
| tree | 4fb969f422a617135f4425d068642da9d7c8fe89 /tests | |
| parent | 909c44e1aa8c216e748ef85d27ab8b686fe61d46 (diff) | |
Properly handle the fact that lists are mutable when trying to maintain state in a test.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -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 ee7191786b..3135f445b8 100644 --- a/tests/regressiontests/app_loading/tests.py +++ b/tests/regressiontests/app_loading/tests.py @@ -10,7 +10,7 @@ from django.utils.unittest import TestCase 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 |
