homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou
Date 2013年05月18日.17:05:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368896719.35.0.915741072389.issue18010@psf.upfronthosting.co.za>
In-reply-to
Content
After installing Django, I get the following error in test_pydoc:
======================================================================
FAIL: test_url_requests (test.test_pydoc.PydocUrlHandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/antoine/cpython/finalize/Lib/test/test_pydoc.py", line 581, in test_url_requests
 self.assertEqual(result, title, text)
AssertionError: 'Pydoc: Error - search?key=pydoc' != 'Pydoc: Search Results'
- Pydoc: Error - search?key=pydoc
+ Pydoc: Search Results
The reason is attempting to import a django.something module raises the following error:
django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
... which isn't silenced by pydoc.
Now I agree this is fundamentally obnoxious on Django's part, but unfortunately it isn't the only package (IIRC) to behave in this way, meaning it would be nice from pydoc to silence all such errors when an import is attempted.
History
Date User Action Args
2013年05月18日 17:05:19pitrousetrecipients: + pitrou
2013年05月18日 17:05:19pitrousetmessageid: <1368896719.35.0.915741072389.issue18010@psf.upfronthosting.co.za>
2013年05月18日 17:05:19pitroulinkissue18010 messages
2013年05月18日 17:05:18pitroucreate

AltStyle によって変換されたページ (->オリジナル) /