summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2012-03-31 22:24:24 +0000
committerRamiro Morales <cramm0@gmail.com>2012-03-31 22:24:24 +0000
commitb41ebcf1b9454bf0905c69594fa2dd1af19e7a60 (patch)
tree83d864f7eb440394721f564d2fb8327673f91da5 /tests/regressiontests/admin_scripts
parentf38cf60c35bc9427ad14e261eea40acf91bc2c49 (diff)
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
Diffstat (limited to 'tests/regressiontests/admin_scripts')
-rw-r--r--tests/regressiontests/admin_scripts/tests.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py
index dd3b0b4385..68ebda064a 100644
--- a/tests/regressiontests/admin_scripts/tests.py
+++ b/tests/regressiontests/admin_scripts/tests.py
@@ -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):