Commit 88bd40c5 authored by Karen Tracey's avatar Karen Tracey
Browse files

[1.1.X] Corrected app_loading test so it does not generate a key error when TZ...

[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
parent daeceafe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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