Your message dated Thu, 01 Dec 2022 11:52:10 +0000
with message-id <e1p0i6s-00hy0r...@fasolo.debian.org>
and subject line Bug#1025182: fixed in rich 12.6.0-1
has caused the Debian Bug report #1025182,
regarding rich: (autopkgtest) needs update for python3.11: AssertionError
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 ow...@bugs.debian.org
immediately.)


-- 
1025182: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025182
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: rich
Version: 12.4.4-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 rich 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
rich                   from testing    12.4.4-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/r/rich/28796437/log.gz

=================================== FAILURES =================================== ______________________________ test_inspect_text _______________________________

    @skip_pypy3
    def test_inspect_text():
        expected = (
            "╭──────────────── <class 'str'> ─────────────────╮\n"
            "│ str(object='') -> str                          │\n"
            "│ str(bytes_or_buffer[, encoding[, errors]]) ->  │\n"
            "│ str                                            │\n"
            "│                                                │\n"
            "│ 33 attribute(s) not shown. Run                 │\n"
            "│ inspect(inspect) for options.                  │\n"
            "╰────────────────────────────────────────────────╯\n"
        )
        print(repr(expected))
      assert expected == render("Hello")
E AssertionError: assert '╭───────────...──────────╯\n' == '╭───────────...──────────╯\n'
E         Skipping 248 identical leading characters in diff, use -v to show
E         Skipping 140 identical trailing characters in diff, use -v to show
E                │
E         - │ 34 attribut
E         ?    ^
E         + │ 33 attribut
E         ?    ^

tests/test_inspect.py:102: AssertionError
----------------------------- Captured stdout call ----------------------------- "╭──────────────── <class 'str'> ─────────────────╮\n│ str(object='') -> str │\n│ str(bytes_or_buffer[, encoding[, errors]]) -> │\n│ str │\n│ │\n│ 33 attribute(s) not shown. Run │\n│ inspect(inspect) for options. │\n╰────────────────────────────────────────────────╯\n" ________________________ test_inspect_builtin_function _________________________

    @skip_pypy3
    def test_inspect_builtin_function():
        expected = (
            "╭────────── <built-in function print> ───────────╮\n"
            "│ def print(...)                                 │\n"
            "│                                                │\n"
            "│ print(value, ..., sep=' ', end='\\n',           │\n"
            "│ file=sys.stdout, flush=False)                  │\n"
            "│                                                │\n"
            "│ 29 attribute(s) not shown. Run                 │\n"
            "│ inspect(inspect) for options.                  │\n"
            "╰────────────────────────────────────────────────╯\n"
        )
      assert expected == render(print)
E AssertionError: assert '╭────────── ...──────────╯\n' == '╭────────── ...──────────╯\n'
E         Skipping 53 identical leading characters in diff, use -v to show
E         + def print(...)                                 │
E         - def print(*args, sep=' ', end='\n', file=None, │
E         - │ flush=False):                                  │
E           │                                                │
E         - │ Prints the values to a stream, or to           │
E         - │ sys.stdout by default.                         │...
E E ...Full output truncated (10 lines hidden), use '-vv' to show

tests/test_inspect.py:142: AssertionError
______________________ test_inspect_integer_with_methods _______________________

    @skip_py36
    @skip_py37
    @skip_py38
    @skip_py39
    def test_inspect_integer_with_methods():
        expected = (
            "╭──────────────── <class 'int'> ─────────────────╮\n"
            "│ int([x]) -> integer                            │\n"
            "│ int(x, base=10) -> integer                     │\n"
            "│                                                │\n"
            "│      denominator = 1                           │\n"
            "│             imag = 0                           │\n"
            "│        numerator = 1                           │\n"
            "│             real = 1                           │\n"
            "│ as_integer_ratio = def as_integer_ratio():     │\n"
            "│                    Return integer ratio.       │\n"
            "│        bit_count = def bit_count(): Number of  │\n"
            "│                    ones in the binary          │\n"
            "│                    representation of the       │\n"
            "│                    absolute value of self.     │\n"
            "│       bit_length = def bit_length(): Number of │\n"
            "│                    bits necessary to represent │\n"
            "│                    self in binary.             │\n"
            "│        conjugate = def conjugate(...) Returns  │\n"
            "│                    self, the complex conjugate │\n"
            "│                    of any int.                 │\n"
            "│       from_bytes = def from_bytes(bytes,       │\n"
            "│                    byteorder, *,               │\n"
            "│                    signed=False): Return the   │\n"
            "│                    integer represented by the  │\n"
            "│                    given array of bytes.       │\n"
            "│         to_bytes = def to_bytes(length,        │\n"
            "│                    byteorder, *,               │\n"
            "│                    signed=False): Return an    │\n"
            "│                    array of bytes representing │\n"
            "│                    an integer.                 │\n"
            "╰────────────────────────────────────────────────╯\n"
        )
      assert expected == render(1, methods=True)
E AssertionError: assert '╭───────────...──────────╯\n' == '╭───────────...──────────╯\n'
E         Skipping 1091 identical leading characters in diff, use -v to show
E         Skipping 206 identical trailing characters in diff, use -v to show
E         -  byteorder='big', *,         │
E         ?           ------
E         +  byteorder, *,               │
E         ?                        ++++++
E           │                    signed=False): Return the   │...
E E ...Full output truncated (11 lines hidden), use '-vv' to show

tests/test_inspect.py:243: AssertionError
___________________________________ test_log ___________________________________

    def test_log():
        expected = replace_link_ids(
"\x1b[TIME]\x1b\x1b \x1b \x1b]8;id=0;foo\x1b\\\x1bsource.py\x1b\x1b]8;;\x1b\\\x1b:\x1b\x1b]8;id=0;foo\x1b\\\x1b32\x1b\x1b]8;;\x1b\\\n\x1b \x1b\x1b \x1bHello from \x1b<\x1b\x1bconsole\x1b\x1b \x1b\x1bwidth\x1b\x1b=\x1b\x1b80\x1b\x1b ColorSystem.TRUECOLOR\x1b\x1b>\x1b ! \x1b]8;id=0;foo\x1b\\\x1bsource.py\x1b\x1b]8;;\x1b\\\x1b:\x1b\x1b]8;id=0;foo\x1b\\\x1b33\x1b\x1b]8;;\x1b\\\n\x1b \x1b\x1b \x1b\x1b[\x1b\x1b1\x1b, \x1b2\x1b, \x1b3\x1b\x1b]\x1b \x1b]8;id=0;foo\x1b\\\x1bsource.py\x1b\x1b]8;;\x1b\\\x1b:\x1b\x1b]8;id=0;foo\x1b\\\x1b34\x1b\x1b]8;;\x1b\\\n\x1b \x1b\x1b╭─\x1b\x1b───────────────────── \x1b\x1blocals\x1b\x1b ─────────────────────\x1b\x1b─╮\x1b \x1b \x1b\n\x1b \x1b\x1b│\x1b \x1bconsole\x1b\x1b =\x1b \x1b<\x1b\x1bconsole\x1b\x1b \x1b\x1bwidth\x1b\x1b=\x1b\x1b80\x1b\x1b ColorSystem.TRUECOLOR\x1b\x1b>\x1b \x1b│\x1b \x1b \x1b\n\x1b \x1b\x1b╰────────────────────────────────────────────────────╯\x1b \x1b \x1b\n"
        )
        rendered = render_log()
        print(repr(rendered))
      assert rendered == expected
E AssertionError: assert '\x1b[T... \x1b\n' == '\x1b[T... \x1b\n'
E         Skipping 277 identical leading characters in diff, use -v to show
E -  ColorSystem.TRUECOLOR> ! ]8;id=0;foo\source.py]8;;\:]8;id=0;foo\33]8;;\
E         ?           ^^^^^^^^^^ ^^^^^^^^^^
E +  3> ! ]8;id=0;foo\source.py]8;;\:]8;id=0;foo\33]8;;\
E         ?           ^^^ ^^^^^^^^               ++++++++++++++++++++
E   [1, 2, 3] ]8;i... E E ...Full output truncated (13 lines hidden), use '-vv' to show

tests/test_log.py:44: AssertionError
----------------------------- Captured stdout call ----------------------------- '\x1b[TIME]\x1b\x1b \x1b \x1b]8;id=0;foo\x1b\\\x1bsource.py\x1b\x1b]8;;\x1b\\\x1b:\x1b\x1b]8;id=0;foo\x1b\\\x1b32\x1b\x1b]8;;\x1b\\\n\x1b \x1b\x1b \x1bHello from \x1b<\x1b\x1bconsole\x1b\x1b \x1b\x1bwidth\x1b\x1b=\x1b\x1b80\x1b\x1b \x1b\x1b3\x1b\x1b>\x1b ! \x1b]8;id=0;foo\x1b\\\x1bsource.py\x1b\x1b]8;;\x1b\\\x1b:\x1b\x1b]8;id=0;foo\x1b\\\x1b33\x1b\x1b]8;;\x1b\\\n\x1b \x1b\x1b \x1b\x1b[\x1b\x1b1\x1b, \x1b2\x1b, \x1b3\x1b\x1b]\x1b \x1b]8;id=0;foo\x1b\\\x1bsource.py\x1b\x1b]8;;\x1b\\\x1b:\x1b\x1b]8;id=0;foo\x1b\\\x1b34\x1b\x1b]8;;\x1b\\\n\x1b \x1b\x1b╭─\x1b\x1b─────────── \x1b\x1blocals\x1b\x1b ───────────\x1b\x1b─╮\x1b \x1b \x1b\n\x1b \x1b\x1b│\x1b \x1bconsole\x1b\x1b =\x1b \x1b<\x1b\x1bconsole\x1b\x1b \x1b\x1bwidth\x1b\x1b=\x1b\x1b80\x1b\x1b \x1b\x1b3\x1b\x1b>\x1b \x1b│\x1b \x1b \x1b\n\x1b \x1b\x1b╰────────────────────────────────╯\x1b \x1b \x1b\n' ______________________________ test_attrs_broken _______________________________

    @skip_py36
    @skip_py310
    def test_attrs_broken():
        @attr.define
        class Foo:
            bar: int
            foo = Foo(1)
        del foo.bar
        result = pretty_repr(foo)
        print(repr(result))
        expected = "Foo(bar=AttributeError('bar'))"
      assert result == expected
E assert 'Foo(bar=Attr...te \'bar\'"))' == "Foo(bar=Attr...Error('bar'))"
E         - Foo(bar=AttributeError('bar'))
E         + Foo(bar=AttributeError("'Foo' object has no attribute 'bar'"))

tests/test_pretty.py:489: AssertionError
----------------------------- Captured stdout call -----------------------------
'Foo(bar=AttributeError("\'Foo\' object has no attribute \'bar\'"))'
=============================== warnings summary ===============================
tests/test_markup.py:147

/tmp/autopkgtest-lxc.v94n7e7e/downtmp/autopkgtest_tmp/tests/test_markup.py:147: DeprecationWarning: invalid escape sequence '\['
    result = str(render("[dim white]\[url=[/]"))

tests/test_traceback.py:52

/tmp/autopkgtest-lxc.v94n7e7e/downtmp/autopkgtest_tmp/tests/test_traceback.py:52: DeprecationWarning: invalid escape sequence '\.'
    "^│ .+rich/tests/test_traceback\.py:",

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================ FAILED tests/test_inspect.py::test_inspect_text - AssertionError: assert '╭──... FAILED tests/test_inspect.py::test_inspect_builtin_function - AssertionError:... FAILED tests/test_inspect.py::test_inspect_integer_with_methods - AssertionEr...
FAILED tests/test_log.py::test_log - AssertionError: assert '\x1b[T... ...
FAILED tests/test_pretty.py::test_attrs_broken - assert 'Foo(bar=Attr...te \'... ============ 5 failed, 648 passed, 19 skipped, 2 warnings in 4.75s =============
autopkgtest [01:16:19]: test unittests

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: rich
Source-Version: 12.6.0-1
Done: Andrius Merkys <mer...@debian.org>

We believe that the bug you reported is fixed in the latest version of
rich, 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 1025...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrius Merkys <mer...@debian.org> (supplier of updated rich 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Thu, 01 Dec 2022 06:21:06 -0500
Source: rich
Architecture: source
Version: 12.6.0-1
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <mo...@debian.org>
Changed-By: Andrius Merkys <mer...@debian.org>
Closes: 1025182
Changes:
 rich (12.6.0-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream version 12.6.0; Closes: #1025182
Checksums-Sha1:
 941eefa3a4257c742fe183e553086408f9d49491 2210 rich_12.6.0-1.dsc
 8d495ff6fc16760871c0d521bbf8d9fe234cfb88 15056457 rich_12.6.0.orig.tar.gz
 9e623a09e0b4c7445347446944e30c66ee83b5ae 3780 rich_12.6.0-1.debian.tar.xz
 46a8031700df7cfcbf539875c280d5759cb8f977 8044 rich_12.6.0-1_source.buildinfo
Checksums-Sha256:
 7922e6fe345961c95bd11cb2a4f3e91da30db6da494dd97ccc551fe423eb5976 2210 
rich_12.6.0-1.dsc
 c6e2e03907dd740f3eef8b1e4b09f0aa2f7a3ed3fd428f1155e11284346c9467 15056457 
rich_12.6.0.orig.tar.gz
 3e0f6e60a4586167a919ac2f79d335ceb9c63dfb09356cc8c1fffdb323d0633e 3780 
rich_12.6.0-1.debian.tar.xz
 ab9861b7bb7eba2c1219738d143907fff9007babfb0f0a0c351c2e62ee1d3477 8044 
rich_12.6.0-1_source.buildinfo
Files:
 de45c07976bfcfad669182f89cb6ecce 2210 python optional rich_12.6.0-1.dsc
 eb43f915e5c5b5721268b9732a0295b1 15056457 python optional 
rich_12.6.0.orig.tar.gz
 4188a9a9b962b8080a8b3371e920c60c 3780 python optional 
rich_12.6.0-1.debian.tar.xz
 1d89d9021d0bb709e60ae1c7e069538f 8044 python optional 
rich_12.6.0-1_source.buildinfo

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

iQJGBAEBCgAwFiEEdyKS9veshfrgQdQe5fQ/nCc08ocFAmOIjmQSHG1lcmt5c0Bk
ZWJpYW4ub3JnAAoJEOX0P5wnNPKHdIsP/i7r6EuTe7SBCGqt+09SU31RqE1XYCho
04+FluYFY9dOU3Djy4LpfcHGWjxSFdnrfZ+tJ9GFns4I8/yBOwoXiz22we5r7AIF
zFGGzK5jk02zGEFqEUS5SCm8/T9+gmKKpgJUv1OBVdAcpq36CB7uAUXvgaFTNX2D
C2VHVwYADgrt69T/GZpa0QcW0lCOk5cviOhIwwTWRMFeWDEPsf3w35Y9Z9Uaw9vF
bln75ziQ3TJKUI3MzfPtiPUMK/7h2jWe9q6wncdLMsJkxlcrvUwP2GHdjn3JSKjr
B9hxPd0oXceS3iHbMoAiyajnLh7MqCTHYgyVbFnFoDBoSp2KmZC/DNTNsbms6r05
wHIaKPzTAag3XRHavrMF+BWGQPvHW/yo+aysiiGbndUGAlIx0QS+SxLxHif9OI0s
RtdWJZfAGJPnhlbcZbbcXqlcOsOLWsBn8EKBMMGXHhZXQngy/iX5WMYuBcIRt9v6
pULnZyr1U0G71ecuS505notUkVUzuO++ntD0dBksVKXlfiBAM+02qPGO+PRCF4hE
UfqVL5CLwnoH7aktq5IggAMMuNU18aWY+4KgAMPZn6C3fKVdqV7RTMM4iMmaq+s6
K9OnYe0e8imusgAGhHp5deVuBBiISAz6ppAATYcfIrLwvmQdvvbp+qLnPABC95gD
aHwp8jwaxdu9
=YaLT
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to