1
0
mirror of https://github.com/django/django.git synced 2024-12-23 17:46:27 +00:00

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
This commit is contained in:
Alex Gaynor 2010-11-02 05:27:24 +00:00
parent 909c44e1aa
commit 7dfefa74ca

View File

@ -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