[Django] #28348: runtests.py fails if xgettext utility is not on system path

13 views
Skip to first unread message

Django

unread,
Jun 29, 2017, 5:23:19 PM6/29/17
to django-...@googlegroups.com
#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.

Django

unread,
Jun 29, 2017, 5:38:18 PM6/29/17
to django-...@googlegroups.com
#28348: runtests.py fails if xgettext utility is not on system path
-------------------------------------+-------------------------------------
Reporter: Evan Grim | Owner: Evan Grim
Type: Bug | Status: closed
Component: Testing framework | Version: 1.11
Severity: Normal | Resolution: fixed
Keywords: testing skip | Triage Stage:
xgettext runtests | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Evan Grim):

* status: assigned => closed
* resolution: => fixed


Comment:

Fixed.

--
Ticket URL: <https://code.djangoproject.com/ticket/28348#comment:1>

Reply all
Reply to author
Forward
0 new messages