Opened 9 months ago

Closed 4 months ago

#23311 closed Bug (fixed)

Windows/Python 3 test failure: test_comments_extractor

Reported by: timgraham Owned by: nobody
Component: Internationalization Version: master
Severity: Normal Keywords: makemessages "Translators:" comments windows-test-failure
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

======================================================================
FAIL: test_comments_extractor (i18n.test_extraction.BasicExtractorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Users\Tim\django\tests\i18n\test_extraction.py", line 151, in test_comments_extractor
    self.assertTrue('#. Translators: One-line translator comment #5 -- with non ASCII characters: áéíóúö' in po_contents)
AssertionError: False is not true

Change History (3)

comment:1 Changed 9 months ago by ramiro

  • Keywords makemessages "Translators:" comments added

This issue (i.e. the reported test failing on Windows+Python3):

comment:2 Changed 5 months ago by timgraham

  • Keywords windows-test-failure added

comment:3 Changed 4 months ago by Ramiro Morales <ramiro@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 6fb9dee470d57882e378247fd2706d5f9867b5f9:

Fixed #23271 -- Don't corrupt PO files on Windows when updating them.

Make sure PO catalog text fetched from gettext programs via standard
output isn't corrupted by mismatch between assumed (UTF-8) and real
(CP1252) encodings. This can cause mojibake to be written when creating
or updating PO files.

Also fixes #23311.

Thanks to contributor with Trac nick 'danielmenzel' for the report,
excellent research and fix.

Note: See TracTickets for help on using tickets.
Back to Top