#31850: test_extraction_warning (i18n.test_extraction.BasicExtractorTests) fails
with gettext-0.21
-----------------------------------------+------------------------
               Reporter:  mgorny         |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  master
               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              |
-----------------------------------------+------------------------
 After upgrading system gettext to 0.21, the following test started to
 fail:

 {{{
 ======================================================================
 FAIL: test_extraction_warning (i18n.test_extraction.BasicExtractorTests)
 test xgettext warning about multiple bare interpolation placeholders
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python3.9/unittest/case.py", line 59, in testPartExecutor
     yield
   File "/usr/lib/python3.9/unittest/case.py", line 593, in run
     self._callTestMethod(testMethod)
   File "/usr/lib/python3.9/unittest/case.py", line 550, in _callTestMethod
     method()
   File "/tmp/django/tests/i18n/test_extraction.py", line 233, in
 test_extraction_warning
     self.assertIn("code_sample.py:4", out.getvalue())
   File "/usr/lib/python3.9/unittest/case.py", line 1098, in assertIn
     self.fail(self._formatMessage(msg, standardMsg))
   File "/usr/lib/python3.9/unittest/case.py", line 670, in fail
     raise self.failureException(msg)
 AssertionError: 'code_sample.py:4' not found in 'processing locale de\n'
 }}}

 I can reproduce the failure with django 2.2.15, 3.0.9 and git master
 (b68b8cb89abb35ff2152175ea540619ec384b1f4).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31850>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.a5f6ef7076c842d725e50e2f9b509e2e%40djangoproject.com.

Reply via email to