Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected app_loading test so it does not generate a key error when T…

…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...
commit 96a10094e8e7095e1c818231031d7bcbf9dac95a 1 parent b740534
@kmtracey kmtracey authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.