mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	[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
This commit is contained in:
		| @@ -10,7 +10,7 @@ from django.db.models.loading import cache, load_app | |||||||
|  |  | ||||||
| class InstalledAppsGlobbingTest(TestCase): | class InstalledAppsGlobbingTest(TestCase): | ||||||
|     def setUp(self): |     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__))) |         sys.path.append(os.path.dirname(os.path.abspath(__file__))) | ||||||
|         self.OLD_TZ = os.environ.get("TZ") |         self.OLD_TZ = os.environ.get("TZ") | ||||||
|  |  | ||||||
| @@ -28,7 +28,7 @@ class InstalledAppsGlobbingTest(TestCase): | |||||||
| class EggLoadingTest(TestCase): | class EggLoadingTest(TestCase): | ||||||
|  |  | ||||||
|     def setUp(self): |     def setUp(self): | ||||||
|         self.old_path = sys.path |         self.old_path = sys.path[:] | ||||||
|         self.egg_dir = '%s/eggs' % os.path.dirname(__file__) |         self.egg_dir = '%s/eggs' % os.path.dirname(__file__) | ||||||
|  |  | ||||||
|         # This test adds dummy applications to the app cache. These |         # This test adds dummy applications to the app cache. These | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user