Source: zope.exceptions Version: 4.5-1 Severity: serious Tags: sid bookworm User: debian...@lists.debian.org Usertags: needs-update User: debian-pyt...@lists.debian.org Usertags: python3.11 Control: affects -1 src:python3-defaults
Dear maintainer(s),We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of zope.exceptions fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:
pass fail python3-defaults from testing 3.10.6-3 zope.exceptions from testing 4.5-1 all others from testing from testing I copied some of the output at the bottom of this report.Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.
More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [0] https://bugs.debian.org/1021984 [1] https://qa.debian.org/excuses.php?package=python3-defaults https://ci.debian.net/data/autopkgtest/testing/amd64/z/zope.exceptions/28796455/log.gz=================================== FAILURES =================================== ____ TextExceptionFormatterTests.test_formatException_recursion_in_tb_stack ____
self = <zope.exceptions.tests.test_exceptionformatter.TextExceptionFormatterTests testMethod=test_formatException_recursion_in_tb_stack>
def test_formatException_recursion_in_tb_stack(self): import traceback fmt = self._makeOne() err = ValueError('testing') tb_recurse = DummyTB() tb_recurse.tb_lineno = 27 r_f = tb_recurse.tb_frame = DummyFrame() r_f.f_lineno = 27 r_f.f_locals['__exception_formatter__'] = 1 tb = DummyTB() tb.tb_frame = DummyFrame() tb.tb_next = tb_recurse
lines = fmt.formatException(ValueError, err, tb)
/usr/lib/python3/dist-packages/zope/exceptions/tests/test_exceptionformatter.py:347: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/zope/exceptions/exceptionformatter.py:186: in formatException
result.extend(traceback.format_tb(tb)) /usr/lib/python3.11/traceback.py:59: in format_tb return extract_tb(tb, limit=limit).format() /usr/lib/python3.11/traceback.py:74: in extract_tb return StackSummary._extract_from_extended_frame_gen( /usr/lib/python3.11/traceback.py:416: in _extract_from_extended_frame_gen for f, (lineno, end_lineno, colno, end_colno) in frame_gen:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tb = <zope.exceptions.tests.test_exceptionformatter.DummyTB object at 0x7fea63c25110>
def _walk_tb_with_full_positions(tb):# Internal version of walk_tb that yields full code positions including
# end line and column information. while tb is not None:
positions = _get_code_position(tb.tb_frame.f_code, tb.tb_lasti)
E AttributeError: 'DummyTB' object has no attribute 'tb_lasti' /usr/lib/python3.11/traceback.py:353: AttributeError=============================== warnings summary ===============================
../../../../usr/lib/python3/dist-packages/zope/exceptions/tests/test_exceptionformatter.py:869/usr/lib/python3/dist-packages/zope/exceptions/tests/test_exceptionformatter.py:869: PytestCollectionWarning: cannot collect test class 'TestingTracebackSupplement' because it has a __init__ constructor (from: tests/test_exceptionformatter.py)
class TestingTracebackSupplement(object): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html=========================== short test summary info ============================ FAILED tests/test_exceptionformatter.py::TextExceptionFormatterTests::test_formatException_recursion_in_tb_stack =================== 1 failed, 79 passed, 1 warning in 0.18s ====================
autopkgtest [01:18:35]: test upstream-unittest
OpenPGP_signature
Description: OpenPGP digital signature