[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1025197: marked as done (zope.exceptions: (autopkgtest) needs update for python3.11: 'DummyTB' object has no attribute 'tb_lasti')



Your message dated Thu, 01 Dec 2022 19:38:02 +0000
with message-id <E1p0pNi-0020cg-C6@fasolo.debian.org>
and subject line Bug#1025197: fixed in zope.exceptions 4.6-1
has caused the Debian Bug report #1025197,
regarding zope.exceptions: (autopkgtest) needs update for python3.11: 'DummyTB' object has no attribute 'tb_lasti'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1025197: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025197
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: zope.exceptions
Version: 4.5-1
Severity: serious
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
User: debian-python@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

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: zope.exceptions
Source-Version: 4.6-1
Done: Håvard F. Aasen <havard.f.aasen@pfft.no>

We believe that the bug you reported is fixed in the latest version of
zope.exceptions, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1025197@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Håvard F. Aasen <havard.f.aasen@pfft.no> (supplier of updated zope.exceptions package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 01 Dec 2022 18:41:43 +0100
Source: zope.exceptions
Architecture: source
Version: 4.6-1
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Håvard F. Aasen <havard.f.aasen@pfft.no>
Closes: 1025197
Changes:
 zope.exceptions (4.6-1) unstable; urgency=medium
 .
   * QA upload.
   * New upstream release
     - Supports Python 3.11. Closes: #1025197
Checksums-Sha1:
 844810e1abcc7ec680a2676e54a8948fd0047d06 1961 zope.exceptions_4.6-1.dsc
 4bc28b628da6f4289006f369c1d8611eb9a80220 30876 zope.exceptions_4.6.orig.tar.gz
 40561407f538c93aea828a6d87edc62c633fbab9 4396 zope.exceptions_4.6-1.debian.tar.xz
 7721f06619ad3dc39fad3d1d1a441f306a32c3bb 6845 zope.exceptions_4.6-1_amd64.buildinfo
Checksums-Sha256:
 dabb1f48a77c11859aa52abffa274b96b73fa1aaba70b4865127cafa792e0902 1961 zope.exceptions_4.6-1.dsc
 619d24a4c65bed97b3dd0515e732e82b69f155d42cc94955d1be8c28288683cd 30876 zope.exceptions_4.6.orig.tar.gz
 144e0aff0d06d44b1c2cfdf4ca962d38267f30c5195096e2e64fd2bee714114b 4396 zope.exceptions_4.6-1.debian.tar.xz
 b8d04ea0e0e77d5c3a5f17e46a309866eda28f8ee52bd265a7ac13de1578d934 6845 zope.exceptions_4.6-1_amd64.buildinfo
Files:
 f74991c5646b16b5334bd745e51547db 1961 zope optional zope.exceptions_4.6-1.dsc
 606505125f5d2b7484f300d1530316c3 30876 zope optional zope.exceptions_4.6.orig.tar.gz
 f50280ccabb9bb464d022d069014e06f 4396 zope optional zope.exceptions_4.6-1.debian.tar.xz
 08fdf0afe7b5dd16f210c5529e8cdcba 6845 zope optional zope.exceptions_4.6-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmOI+bIACgkQwpPntGGC
Ws5iqBAAuI3KvnfGrjloOR7Mv6Iz7tZtPpNR8URC/t5dlGlnWHGLexZJ3Se4DQVn
m3enyzmn1nYtxiaLa49CBvzbtb8w2Bwln+YatxW09fb+6mCXC5o1fa0bIzMAkKV/
uQYK+xDwFvVxSFbz0y50Wihtvs9CS0KH21d5SjJMxfk/WfUERbfRplIFmYjl/SZk
1eZfKKby0R7bP3UB/uaMKjoEF5trgLOQSIXIsDtiNNTwPkNKe83TqWVBYG1WQrsv
IaLeS+QlrdJfxY1BsoWO1pgLE/t2z0UW2866tOy6zKrDcIp3nt0Cu/g9qb4sbuHR
VNO9Jg1Uekakny4t2bXN9DLP9foG97oTeaEncvVPWuop2rWEMaqEuqtF8xsrJKNy
y+kHmJOHycahi9ev7H39watg9zJjJskxZu+/CpABL5UTdmRO5rmlmUFNekgWZELw
PZjiTp8i1ujYu22ul9zkEgp43zrIJlwrZQOY9CE0fivcGlHpYUpCr7asSuv2ph2z
7qCPCd8mBTEHtPBLETLTlRo6Hra8zL3byXMQHa1mdF+TCEni0zxlPDfa86tv9PVu
XKmPjBSgA50Da3fLWh1DJFi5jKoCZ8JcXCnQkpk32tZSTZdRtUT+ztTZh37tKSBF
wreyh3D0InKVpCiOjoUn4G5m4vw+d4iDMBD2vmmWj2zDGjI2TXw=
=aJlg
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: