From 96a10094e8e7095e1c818231031d7bcbf9dac95a Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Wed, 3 Feb 2010 18:09:11 +0000 Subject: [PATCH] Corrected app_loading test so it does not generate a key error when TZ is not set in the environment (e.g., on Windows). git-svn-id: http://code.djangoproject.com/svn/django/trunk@12379 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/app_loading/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/app_loading/tests.py b/tests/regressiontests/app_loading/tests.py index bc958c0d88..683c6079ad 100644 --- a/tests/regressiontests/app_loading/tests.py +++ b/tests/regressiontests/app_loading/tests.py @@ -10,7 +10,7 @@ Test the globbing of INSTALLED_APPS. >>> old_sys_path = sys.path >>> sys.path.append(os.path.dirname(os.path.abspath(__file__))) ->>> old_tz = os.environ["TZ"] +>>> old_tz = os.environ.get("TZ") >>> settings = Settings('test_settings') >>> settings.INSTALLED_APPS