Permalink
Browse files

[1.1.X] Corrected app_loading test so it does not generate a key erro…

…r 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
  • Loading branch information...
1 parent daeceaf commit 88bd40c551365c92312e79a51fc4891a0099d9fe @kmtracey kmtracey committed Feb 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/app_loading/tests.py
View
2 tests/regressiontests/app_loading/tests.py
@@ -10,7 +10,7 @@
>>> 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

0 comments on commit 88bd40c

Please sign in to comment.