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:
Ramiro Morales 2012-03-31 22:24:24 +00:00
parent f38cf60c35
commit b41ebcf1b9
8 changed files with 3 additions and 112 deletions

View file

@ -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):