diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-02-03 18:09:11 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-02-03 18:09:11 +0000 |
| commit | 96a10094e8e7095e1c818231031d7bcbf9dac95a (patch) | |
| tree | ab06e17a5ab403b372fa48a7afcf75cf4165003a | |
| parent | b740534dc4c68a6b4d30eef96f4d7f70c17c9e0d (diff) | |
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
| -rw-r--r-- | tests/regressiontests/app_loading/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
