Package: src:translate-toolkit
Version: 3.8.4-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

translate-toolkit's autopkg tests fail with Python 3.12:

[...]
370s =================================== FAILURES =================================== 370s ________________________ TestRC2POCommand.test_convert _________________________
370s
370s self = <translate.convert.test_rc2po.TestRC2POCommand object at 0x7f64d7490b60>
370s
370s     def test_convert(self):
370s         """Tests the conversion to a po file"""
370s         self.create_testfile("simple.rc", RC_SOURCE)
370s         self.run_command(i="simple.rc", o="simple.po")
370s         po_result = pofile(self.open_testfile("simple.po"))
370s >       assert len(po_result.units) == 23
370s E       assert 0 == 23
370s E        +  where 0 = len([])
370s E + where [] = <translate.storage.pypo.pofile object at 0x7f64d69090a0>.units
370s
370s /usr/lib/python3/dist-packages/translate/convert/test_rc2po.py:91: AssertionError 370s _________________ TestRC2POCommand.test_convert_encoding_utf16 _________________
370s
370s self = <translate.convert.test_rc2po.TestRC2POCommand object at 0x7f64d7492ed0>
370s
370s     def test_convert_encoding_utf16(self):
370s         self.create_testfile("simple.rc", RC_SOURCE.encode("utf-16"))
370s self.run_command(i="simple.rc", o="simple.po", charset="utf-16")
370s         po_result = pofile(self.open_testfile("simple.po"))
370s >       assert len(po_result.units) == 23
370s E       assert 0 == 23
370s E        +  where 0 = len([])
370s E + where [] = <translate.storage.pypo.pofile object at 0x7f64d61f69c0>.units
370s
370s /usr/lib/python3/dist-packages/translate/convert/test_rc2po.py:107: AssertionError 370s _________________ TestRC2POCommand.test_convert_encoding_utf8 __________________
370s
370s self = <translate.convert.test_rc2po.TestRC2POCommand object at 0x7f64d7498950>
370s
370s     def test_convert_encoding_utf8(self):
370s         self.create_testfile("simple.rc", RC_SOURCE.encode("utf-8"))
370s         self.run_command(i="simple.rc", o="simple.po", charset="utf-8")
370s         po_result = pofile(self.open_testfile("simple.po"))
370s >       assert len(po_result.units) == 23
370s E       assert 0 == 23
370s E        +  where 0 = len([])
370s E + where [] = <translate.storage.pypo.pofile object at 0x7f64d625f020>.units
370s
370s /usr/lib/python3/dist-packages/translate/convert/test_rc2po.py:122: AssertionError 370s _________________________ TestRC2POCommand.test_menuex _________________________
370s
370s self = <translate.convert.test_rc2po.TestRC2POCommand object at 0x7f64d74988f0>
370s
370s         def test_menuex(self):
370s             source = """
370s     LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
370s
370s     IDM_STARTMENU MENUEX
370s     BEGIN
370s         POPUP ""
370s         BEGIN
370s             MENUITEM "", -1, MFT_SEPARATOR
370s             POPUP "&Programs", IDM_PROGRAMS
370s             BEGIN
370s                 MENUITEM "(Empty)", -1, MFT_STRING, MFS_GRAYED
370s             END
370s MENUITEM "Sh&ut Down...", IDM_SHUTDOWN, MFT_STRING, MFS_ENABLED
370s         END
370s     END
370s     """
370s             self.create_testfile("simple.rc", source.encode("utf-8"))
370s self.run_command(i="simple.rc", o="simple.po", charset="utf-8")
370s             po_result = pofile(self.open_testfile("simple.po"))
370s >           assert len(po_result.units) == 5
370s E           assert 0 == 5
370s E            +  where 0 = len([])
370s E + where [] = <translate.storage.pypo.pofile object at 0x7f64d61f65d0>.units
370s
370s /usr/lib/python3/dist-packages/translate/convert/test_rc2po.py:144: AssertionError
[...]
370s ===== 4 failed, 3074 passed, 4 skipped, 39 xfailed, 102 warnings in 12.66s =====

Reply via email to