mirror of
https://github.com/django/django.git
synced 2025-07-29 08:04:27 +00:00
Fixed #18040 -- Removed so-called project-level locale trees from the list of paths the translation loading process takes in account.
Deprecated in Django 1.3. Removed completely for Django 1.5. Thanks Claude for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f38cf60c35
commit
b41ebcf1b9
8 changed files with 3 additions and 112 deletions
|
@ -157,16 +157,6 @@ class AdminScriptTestCase(unittest.TestCase):
|
|||
|
||||
def assertNoOutput(self, stream):
|
||||
"Utility assertion: assert that the given stream is empty"
|
||||
# HACK: Under Windows, ignore warnings of the form:
|
||||
# 'warning: Not loading directory '...\tests\regressiontests\locale': missing __init__.py'
|
||||
# It has been impossible to filter them out using other means like:
|
||||
# * Using warning.filterwarnings() (for the Python interpreter running the
|
||||
# tests) and/or
|
||||
# * Using -Wignore:... (for the python interpreter spawned in self.run_test())
|
||||
# Instead use a strategy copied from Mercurial's setup.py
|
||||
if sys.platform == 'win32':
|
||||
stream = [e for e in stream.splitlines()
|
||||
if not e.startswith('warning: Not importing directory')]
|
||||
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
|
||||
|
||||
def assertOutput(self, stream, msg):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue