diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-02-03 18:12:35 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-02-03 18:12:35 +0000 |
| commit | 88bd40c551365c92312e79a51fc4891a0099d9fe (patch) | |
| tree | d3859aaf88b3efb24b948b465809c3894a29b5bb | |
| parent | daeceafee6e7afb3bbe08a1ebd6eee589115de16 (diff) | |
[1.1.X] Corrected app_loading test so it does not generate a key error when TZ is not set in the environment (e.g., on Windows).
r12379 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12380 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 |
