#28348: runtests.py fails if xgettext utility is not on system path
-------------------------------------+-------------------------------------
Reporter: Evan Grim | Owner: Evan Grim
Type: Bug | Status: assigned
Component: Testing | Version: 1.11
framework | Keywords: testing skip
Severity: Normal | xgettext runtests
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Running the tests (with {{{runtests.py}}}) fails if the {{{xgettext}}}
utility is not on the system path.
Error report:
{{{
======================================================================
ERROR: i18n.test_extraction (unittest.loader._FailedTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py",
line 59, in testPartExecutor
yield
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py",
line 601, in run
testMethod()
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py",
line 34, in testFailure
raise self._exception
ImportError: Failed to import test module: i18n.test_extraction
Traceback (most recent call last):
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py",
line 428, in _find_test_path
module = self._get_module_from_name(name)
File
"/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py",
line 369, in _get_module_from_name
__import__(name)
File "/Users/egrim/scratch/django/tests/i18n/test_extraction.py", line
28, in <module>
requires_gettext_019 = skipIf(gettext_version < (0, 19), 'gettext 0.19
required')
TypeError: '<' not supported between instances of 'NoneType' and 'tuple'
----------------------------------------------------------------------
Ran 11482 tests in 83.136s
FAILED (errors=1, skipped=734, expected failures=4)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28348>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.866b2293d9d056c4bc47bb5b669ae29b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.