#36421: Support for msgfmt==0.25
-------------------------------------+-------------------------------------
Reporter: Mohammad Ali | Type:
Mehdizadeh | Uncategorized
Status: new | Component:
| Uncategorized
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
When I run tests on my machine with msgfmt==0.25, one test failed:
```
======================================================================
FAIL: test_msgfmt_error_including_non_ascii
(i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mam/.pyenv/versions/3.12.5/lib/python3.12/unittest/case.py",
line 58, in testPartExecutor
yield
File "/home/mam/.pyenv/versions/3.12.5/lib/python3.12/unittest/case.py",
line 634, in run
self._callTestMethod(testMethod)
^^^^^^^^^^^^^^^^^
File "/home/mam/.pyenv/versions/3.12.5/lib/python3.12/unittest/case.py",
line 589, in _callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File "/home/mam/mycode/django/tests/i18n/test_compilation.py", line 281,
in test_msgfmt_error_including_non_ascii
self.assertIn("' cannot start a field name", stderr.getvalue())
^^^^^^^^^^^^^^^^^
File "/home/mam/.pyenv/versions/3.12.5/lib/python3.12/unittest/case.py",
line 1152, in assertIn
self.fail(self._formatMessage(msg, standardMsg))
^^^^^^^^^^^^^^^^^
File "/home/mam/.pyenv/versions/3.12.5/lib/python3.12/unittest/case.py",
line 715, in fail
raise self.failureException(msg)
^^^^^^^^^^^^^^^^^
AssertionError: "' cannot start a field name" not found in "Execution of
msgfmt failed:
/tmp/django_6kqdkmj8/i18n_i8h9ij4r/commands/locale/ko/LC_MESSAGES/django.po:24:
'msgstr' is not a valid Python brace format string, unlike 'msgid'.
Reason: In the directive number 0, a field name starts with a character
that is not alphanumerical or underscore.\nmsgfmt: found 1 fatal error\n"
----------------------------------------------------------------------
Ran 17523 tests in 155.582s
FAILED (failures=1, skipped=1597, expected failures=5)
```
--
Ticket URL: <
https://code.djangoproject.com/ticket/36421>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.