Skip to content

Commit

Permalink
Corrected app_loading test so it does not generate a key error when T…
Browse files Browse the repository at this point in the history
…Z 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
  • Loading branch information
kmtracey committed Feb 3, 2010
1 parent b740534 commit 96a1009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/regressiontests/app_loading/tests.py
Expand Up @@ -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
Expand Down

0 comments on commit 96a1009

Please sign in to comment.