Source: zope.exceptions Version: 5.1-1 Severity: normal User: debian-pyt...@lists.debian.org Usertags: python3.13 Forwarded: https://github.com/zopefoundation/zope.exceptions/issues/34
This package failed build from source when test-built against a version of python3-defaults that includes 3.13 as a supported version. To reproduce this issue, build against python3-defaults (python3-all-dev etc.) from Debian experimental. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html Log snippet: debian/rules override_dh_auto_test make[1]: Entering directory '/<<PKGBUILDDIR>>' PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m zope.testrunner --test-path=src --verbose --progress --color" dh_auto_test I: pybuild base:311: python3.13 -m zope.testrunner --test-path=src --verbose --progress --color [0mRunning tests at level 1[0m [0mRunning zope.testrunner.layer.UnitTests tests:[0m Set up zope.testrunner.layer.UnitTests in [32m0.000[0m seconds. [0m Running:[0m 1/83 (1.2%) test_ctor_defaults (...eptionFormatterTests.test_ctor_defaults) 2/83 (2.4%) test_ctor_explicit (...eptionFormatterTests.test_ctor_explicit) 3/83 (3.6%) test_escape_non_str (...tionFormatterTests.test_escape_non_str) 4/83 (4.8%) test_escape_simple (...eptionFormatterTests.test_escape_simple) 5/83 (6.0%) test_escape_w_markup (...onFormatterTests.test_escape_w_markup) 6/83 (7.2%) test_formatLastLine (...tionFormatterTests.test_formatLastLine) 7/83 (8.4%) test_formatLine_simple (...rmatterTests.test_formatLine_simple) 8/83 (9.6%) test_formatSupplementInfo_simple (...rmatSupplementInfo_simple) 9/83 (10.8%) test_formatSupplementInfo_w_markup (...upplementInfo_w_markup) 10/83 (12.0%) test_formatSupplementLine (...ests.test_formatSupplementLine) 11/83 (13.3%) test_formatSupplementLine_w_markup (...pplementLine_w_markup) 12/83 (14.5%) test_formatTracebackInfo (...rTests.test_formatTracebackInfo) 13/83 (15.7%) test_getPrefix (...TMLExceptionFormatterTests.test_getPrefix) 14/83 (16.9%) test_basic_names_as_html (..._stack.test_basic_names_as_html) 15/83 (18.1%) test_basic_names_as_text (..._stack.test_basic_names_as_text) 16/83 (19.3%) test_noinput (...onformatter.Test_extract_stack.test_noinput) 17/83 (20.5%) test_traceback_info_html (..._stack.test_traceback_info_html) 18/83 (21.7%) test_traceback_info_text (..._stack.test_traceback_info_text) 19/83 (22.9%) test_traceback_supplement_html (...traceback_supplement_html) 20/83 (24.1%) test_traceback_supplement_text (...traceback_supplement_text) 21/83 (25.3%) test_basic_names_html (...at_exception.test_basic_names_html) 22/83 (26.5%) test_basic_names_text (...at_exception.test_basic_names_text) 23/83 (27.7%) test_format_exception_as_html (...t_format_exception_as_html) [1;31mFailure in test test_format_exception_as_html (zope.exceptions.tests.test_exceptionformatter.Test_format_exception.test_format_exception_as_html)[0m Traceback (most recent call last): [0m File "[1;34m/usr/lib/python3.13/unittest/case.py[0m", line [1;31m58[0m, in [1;36mtestPartExecutor[0m [36m yield[0m [0m File "[1;34m/usr/lib/python3.13/unittest/case.py[0m", line [1;31m651[0m, in [1;36mrun[0m [36m self._callTestMethod(testMethod)[0m [0m File "[1;34m/usr/lib/python3.13/unittest/case.py[0m", line [1;31m606[0m, in [1;36m_callTestMethod[0m [36m if method() is not None:[0m [0m File "[1;34m/usr/lib/python3/dist-packages/zope/exceptions/tests/test_exceptionformatter.py[0m", line [1;31m779[0m, in [1;36mtest_format_exception_as_html[0m [36m self.assertEqual(expected, result)[0m [0m File "[1;34m/usr/lib/python3.13/unittest/case.py[0m", line [1;31m907[0m, in [1;36massertEqual[0m [36m assertion_func(first, second, msg=msg)[0m [0m File "[1;34m/usr/lib/python3.13/unittest/case.py[0m", line [1;31m1273[0m, in [1;36massertMultiLineEqual[0m [36m self.fail(self._formatMessage(msg, standardMsg))[0m [0m File "[1;34m/usr/lib/python3.13/unittest/case.py[0m", line [1;31m732[0m, in [1;36mfail[0m [36m raise self.failureException(msg)[0m [31mAssertionError: '<p>T[272 chars]Error: invalid syntax<br />\n</p>' != '<p>T[272 chars]Error: Expected one or more names after \'import\'<br />\n</p>'[0m [31m <p>Traceback (most recent call last):</p>[0m [31m <ul>[0m [31m <li> Module zope.exceptions.tests.test_exceptionformatter, line ABC, in test_format_exception_as_html<br />[0m [36m exec('import')</li>[0m [31m </ul><p> File "<string>", line 1<br />[0m [36m import<br />[0m [36m ^<br />[0m [31m- SyntaxError: invalid syntax<br />[0m [31m+ SyntaxError: Expected one or more names after 'import'<br />[0m [31m </p>[0m [31m[0m 24/83 (28.9%) test_multiline_exception (...eption.test_multiline_exception) 25/83 (30.1%) test_multiple_levels (...rmat_exception.test_multiple_levels) 26/83 (31.3%) test_pep302_loader_source_in_traceback (...urce_in_traceback) 27/83 (32.5%) test_quote_last_line (...rmat_exception.test_quote_last_line) 28/83 (33.7%) test_recursion_failure (..._exception.test_recursion_failure) 29/83 (34.9%) test_supplement_html (...rmat_exception.test_supplement_html) 30/83 (36.1%) test_supplement_text (...rmat_exception.test_supplement_text) 31/83 (37.3%) test_traceback_info_html (...eption.test_traceback_info_html) 32/83 (38.6%) test_traceback_info_is_tuple (...est_traceback_info_is_tuple) 33/83 (39.8%) test_traceback_info_non_ascii (...t_traceback_info_non_ascii) 34/83 (41.0%) test_traceback_info_text (...eption.test_traceback_info_text) 35/83 (42.2%) test_basic_names_html (...nt_exception.test_basic_names_html) 36/83 (43.4%) test_basic_names_text (...nt_exception.test_basic_names_text) 37/83 (44.6%) test_ctor_defaults (...tionFormatterTests.test_ctor_defaults) 38/83 (45.8%) test_ctor_explicit (...tionFormatterTests.test_ctor_explicit) 39/83 (47.0%) test_escape (...tter.TextExceptionFormatterTests.test_escape) 40/83 (48.2%) test_extractStack_w_multiple_frames_and_limit (..._and_limit) 41/83 (49.4%) test_extractStack_w_recursive_frames (..._w_recursive_frames) 42/83 (50.6%) test_extractStack_w_recursive_frames_and_limit (...and_limit) 43/83 (51.8%) test_extractStack_w_single_frame (...actStack_w_single_frame) 44/83 (53.0%) test_extractStack_wo_frame (...ts.test_extractStack_wo_frame) 45/83 (54.2%) test_extractStack_wo_frame_w_limit (...tack_wo_frame_w_limit) 46/83 (55.4%) test_formatExceptionOnly (...rTests.test_formatExceptionOnly) 47/83 (56.6%) test_formatExceptionOnly_httperror (...ceptionOnly_httperror) 48/83 (57.8%) test_formatException_deep_tb_stack_with_limit (...with_limit) 49/83 (59.0%) test_formatException_empty_tb_stack (...ption_empty_tb_stack) 50/83 (60.2%) test_formatException_httperror (...formatException_httperror) 51/83 (61.4%) test_formatException_non_empty_tb_stack (...n_empty_tb_stack) 52/83 (62.7%) test_formatException_recursion_in_tb_stack (...n_in_tb_stack) 53/83 (63.9%) test_formatLastLine (...onFormatterTests.test_formatLastLine) 54/83 (65.1%) test_formatLine_no_tb_no_f (...ts.test_formatLine_no_tb_no_f) 55/83 (66.3%) test_formatLine_w_f_bogus_linecache_w_filenames (...ilenames) 56/83 (67.5%) test_formatLine_w_f_real_linecache_w_filenames (...filenames) 57/83 (68.7%) test_formatLine_w_supplement_in_globals (...ement_in_globals) 58/83 (69.9%) test_formatLine_w_supplement_in_locals (...plement_in_locals) 59/83 (71.1%) test_formatLine_w_tb_and_f (...ts.test_formatLine_w_tb_and_f) 60/83 (72.3%) test_formatLine_w_tb_bogus_linecache_w_filenames (...lenames) 61/83 (73.5%) test_formatLine_w_tb_bogus_linecache_wo_filenames (...enames) 62/83 (74.7%) test_formatLine_w_traceback_info (...atLine_w_traceback_info) 63/83 (75.9%) test_formatSourceURL (...FormatterTests.test_formatSourceURL) 64/83 (77.1%) test_formatSupplementInfo (...ests.test_formatSupplementInfo) 65/83 (78.3%) test_formatSupplementLine (...ests.test_formatSupplementLine) 66/83 (79.5%) test_formatSupplement_no_info (...t_formatSupplement_no_info) 67/83 (80.7%) test_formatSupplement_w_column_no_line (..._w_column_no_line) 68/83 (81.9%) test_formatSupplement_w_expression (...pplement_w_expression) 69/83 (83.1%) test_formatSupplement_w_getInfo_empty (...nt_w_getInfo_empty) 70/83 (84.3%) test_formatSupplement_w_getInfo_text (...ment_w_getInfo_text) 71/83 (85.5%) test_formatSupplement_w_line_and_column (..._line_and_column) 72/83 (86.7%) test_formatSupplement_w_line_as_marker (..._w_line_as_marker) 73/83 (88.0%) test_formatSupplement_w_line_no_column (..._w_line_no_column) 74/83 (89.2%) test_formatSupplement_w_source_url (...pplement_w_source_url) 75/83 (90.4%) test_formatSupplement_w_warnings (...atSupplement_w_warnings) 76/83 (91.6%) test_formatTracebackInfo (...rTests.test_formatTracebackInfo) 77/83 (92.8%) test_formatTracebackInfo_unicode (...atTracebackInfo_unicode) 78/83 (94.0%) test_getLimit_default (...rmatterTests.test_getLimit_default) 79/83 (95.2%) test_getLimit_explicit (...atterTests.test_getLimit_explicit) 80/83 (96.4%) test_getLimit_sys_has_limit (....test_getLimit_sys_has_limit) 81/83 (97.6%) test_getPrefix (...extExceptionFormatterTests.test_getPrefix) 82/83 (98.8%) test_simple_exception (...rmatterTests.test_simple_exception) 83/83 (100.0%) test_unicode_traceback_info (...test_unicode_traceback_info) [0m Ran [32m83[0m tests with [1;31m1[0m failures, [32m0[0m errors, [32m0[0m skipped in [32m0.009[0m seconds.[0m [0mTearing down left over layers:[0m Tear down zope.testrunner.layer.UnitTests in [32m0.000[0m seconds. Tests with failures: test_format_exception_as_html (zope.exceptions.tests.test_exceptionformatter.Test_format_exception.test_format_exception_as_html) E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: python3.13 -m zope.testrunner --test-path=src --verbose --progress --color I: pybuild base:311: python3.12 -m zope.testrunner --test-path=src --verbose --progress --color [0mRunning tests at level 1[0m [0mRunning zope.testrunner.layer.UnitTests tests:[0m Set up zope.testrunner.layer.UnitTests in [32m0.000[0m seconds. [0m Running:[0m 1/83 (1.2%) test_ctor_defaults (...eptionFormatterTests.test_ctor_defaults) 2/83 (2.4%) test_ctor_explicit (...eptionFormatterTests.test_ctor_explicit) 3/83 (3.6%) test_escape_non_str (...tionFormatterTests.test_escape_non_str) 4/83 (4.8%) test_escape_simple (...eptionFormatterTests.test_escape_simple) 5/83 (6.0%) test_escape_w_markup (...onFormatterTests.test_escape_w_markup) 6/83 (7.2%) test_formatLastLine (...tionFormatterTests.test_formatLastLine) 7/83 (8.4%) test_formatLine_simple (...rmatterTests.test_formatLine_simple) 8/83 (9.6%) test_formatSupplementInfo_simple (...rmatSupplementInfo_simple) 9/83 (10.8%) test_formatSupplementInfo_w_markup (...upplementInfo_w_markup) 10/83 (12.0%) test_formatSupplementLine (...ests.test_formatSupplementLine) 11/83 (13.3%) test_formatSupplementLine_w_markup (...pplementLine_w_markup) 12/83 (14.5%) test_formatTracebackInfo (...rTests.test_formatTracebackInfo) 13/83 (15.7%) test_getPrefix (...TMLExceptionFormatterTests.test_getPrefix) 14/83 (16.9%) test_basic_names_as_html (..._stack.test_basic_names_as_html) 15/83 (18.1%) test_basic_names_as_text (..._stack.test_basic_names_as_text) 16/83 (19.3%) test_noinput (...onformatter.Test_extract_stack.test_noinput) 17/83 (20.5%) test_traceback_info_html (..._stack.test_traceback_info_html) 18/83 (21.7%) test_traceback_info_text (..._stack.test_traceback_info_text) 19/83 (22.9%) test_traceback_supplement_html (...traceback_supplement_html) 20/83 (24.1%) test_traceback_supplement_text (...traceback_supplement_text) 21/83 (25.3%) test_basic_names_html (...at_exception.test_basic_names_html) 22/83 (26.5%) test_basic_names_text (...at_exception.test_basic_names_text) 23/83 (27.7%) test_format_exception_as_html (...t_format_exception_as_html) 24/83 (28.9%) test_multiline_exception (...eption.test_multiline_exception) 25/83 (30.1%) test_multiple_levels (...rmat_exception.test_multiple_levels) 26/83 (31.3%) test_pep302_loader_source_in_traceback (...urce_in_traceback) 27/83 (32.5%) test_quote_last_line (...rmat_exception.test_quote_last_line) 28/83 (33.7%) test_recursion_failure (..._exception.test_recursion_failure) 29/83 (34.9%) test_supplement_html (...rmat_exception.test_supplement_html) 30/83 (36.1%) test_supplement_text (...rmat_exception.test_supplement_text) 31/83 (37.3%) test_traceback_info_html (...eption.test_traceback_info_html) 32/83 (38.6%) test_traceback_info_is_tuple (...est_traceback_info_is_tuple) 33/83 (39.8%) test_traceback_info_non_ascii (...t_traceback_info_non_ascii) 34/83 (41.0%) test_traceback_info_text (...eption.test_traceback_info_text) 35/83 (42.2%) test_basic_names_html (...nt_exception.test_basic_names_html) 36/83 (43.4%) test_basic_names_text (...nt_exception.test_basic_names_text) 37/83 (44.6%) test_ctor_defaults (...tionFormatterTests.test_ctor_defaults) 38/83 (45.8%) test_ctor_explicit (...tionFormatterTests.test_ctor_explicit) 39/83 (47.0%) test_escape (...tter.TextExceptionFormatterTests.test_escape) 40/83 (48.2%) test_extractStack_w_multiple_frames_and_limit (..._and_limit) 41/83 (49.4%) test_extractStack_w_recursive_frames (..._w_recursive_frames) 42/83 (50.6%) test_extractStack_w_recursive_frames_and_limit (...and_limit) 43/83 (51.8%) test_extractStack_w_single_frame (...actStack_w_single_frame) 44/83 (53.0%) test_extractStack_wo_frame (...ts.test_extractStack_wo_frame) 45/83 (54.2%) test_extractStack_wo_frame_w_limit (...tack_wo_frame_w_limit) 46/83 (55.4%) test_formatExceptionOnly (...rTests.test_formatExceptionOnly) 47/83 (56.6%) test_formatExceptionOnly_httperror (...ceptionOnly_httperror) 48/83 (57.8%) test_formatException_deep_tb_stack_with_limit (...with_limit) 49/83 (59.0%) test_formatException_empty_tb_stack (...ption_empty_tb_stack) 50/83 (60.2%) test_formatException_httperror (...formatException_httperror) 51/83 (61.4%) test_formatException_non_empty_tb_stack (...n_empty_tb_stack) 52/83 (62.7%) test_formatException_recursion_in_tb_stack (...n_in_tb_stack) 53/83 (63.9%) test_formatLastLine (...onFormatterTests.test_formatLastLine) 54/83 (65.1%) test_formatLine_no_tb_no_f (...ts.test_formatLine_no_tb_no_f) 55/83 (66.3%) test_formatLine_w_f_bogus_linecache_w_filenames (...ilenames) 56/83 (67.5%) test_formatLine_w_f_real_linecache_w_filenames (...filenames) 57/83 (68.7%) test_formatLine_w_supplement_in_globals (...ement_in_globals) 58/83 (69.9%) test_formatLine_w_supplement_in_locals (...plement_in_locals) 59/83 (71.1%) test_formatLine_w_tb_and_f (...ts.test_formatLine_w_tb_and_f) 60/83 (72.3%) test_formatLine_w_tb_bogus_linecache_w_filenames (...lenames) 61/83 (73.5%) test_formatLine_w_tb_bogus_linecache_wo_filenames (...enames) 62/83 (74.7%) test_formatLine_w_traceback_info (...atLine_w_traceback_info) 63/83 (75.9%) test_formatSourceURL (...FormatterTests.test_formatSourceURL) 64/83 (77.1%) test_formatSupplementInfo (...ests.test_formatSupplementInfo) 65/83 (78.3%) test_formatSupplementLine (...ests.test_formatSupplementLine) 66/83 (79.5%) test_formatSupplement_no_info (...t_formatSupplement_no_info) 67/83 (80.7%) test_formatSupplement_w_column_no_line (..._w_column_no_line) 68/83 (81.9%) test_formatSupplement_w_expression (...pplement_w_expression) 69/83 (83.1%) test_formatSupplement_w_getInfo_empty (...nt_w_getInfo_empty) 70/83 (84.3%) test_formatSupplement_w_getInfo_text (...ment_w_getInfo_text) 71/83 (85.5%) test_formatSupplement_w_line_and_column (..._line_and_column) 72/83 (86.7%) test_formatSupplement_w_line_as_marker (..._w_line_as_marker) 73/83 (88.0%) test_formatSupplement_w_line_no_column (..._w_line_no_column) 74/83 (89.2%) test_formatSupplement_w_source_url (...pplement_w_source_url) 75/83 (90.4%) test_formatSupplement_w_warnings (...atSupplement_w_warnings) 76/83 (91.6%) test_formatTracebackInfo (...rTests.test_formatTracebackInfo) 77/83 (92.8%) test_formatTracebackInfo_unicode (...atTracebackInfo_unicode) 78/83 (94.0%) test_getLimit_default (...rmatterTests.test_getLimit_default) 79/83 (95.2%) test_getLimit_explicit (...atterTests.test_getLimit_explicit) 80/83 (96.4%) test_getLimit_sys_has_limit (....test_getLimit_sys_has_limit) 81/83 (97.6%) test_getPrefix (...extExceptionFormatterTests.test_getPrefix) 82/83 (98.8%) test_simple_exception (...rmatterTests.test_simple_exception) 83/83 (100.0%) test_unicode_traceback_info (...test_unicode_traceback_info) [0m Ran [32m83[0m tests with [32m0[0m failures, [32m0[0m errors, [32m0[0m skipped in [32m0.009[0m seconds.[0m [0mTearing down left over layers:[0m Tear down zope.testrunner.layer.UnitTests in [32m0.000[0m seconds. dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned exit code 13 make[1]: *** [debian/rules:12: override_dh_auto_test] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:8: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-19T17:11:43Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/797786/ This bug has been filed at "normal" severity, as we haven't started the transition to add 3.13 as a supported version, yet. This will be raised to RC as soon as that happens, hopefully well before trixie. Thanks, Stefano