Your message dated Sun, 16 Oct 2022 20:40:34 +0000
with message-id <e1okar0-00dfpz...@fasolo.debian.org>
and subject line Bug#1021873: fixed in python-cffi 1.15.1-3
has caused the Debian Bug report #1021873,
regarding python-cffi: FTBFS with Python 3.11 as a supported version
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.)


-- 
1021873: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021873
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-cffi
Version: 1.15.1-1
Severity: important
Tags: ftbfs fixed-upstream
User: debian-pyt...@lists.debian.org
Usertags: python3.11

Hi Maintainer

python-cffi will FTBFS once Python 3.11 is added as a supported
version.  I've copied what I hope is the relevant part of the log
below.  This appears to be fixed upstream already [1], although not
yet in a release.

Regards
Graham


[1] 
https://foss.heptapod.net/pypy/cffi/-/commit/8a3c2c816d789639b49d3ae867213393ed7abdff


=================================== FAILURES ===================================
___________________________ test_callback_exception ____________________________

    def test_callback_exception():
        try:
            import cStringIO
        except ImportError:
            import io as cStringIO    # Python 3
        import linecache
        def matches(istr, ipattern, ipattern38, ipattern311):
            if sys.version_info >= (3, 8):
                ipattern = ipattern38
            if sys.version_info >= (3, 11):
                ipattern = ipattern311
            str, pattern = istr, ipattern
            while '$' in pattern:
                i = pattern.index('$')
                assert str[:i] == pattern[:i]
                j = str.find(pattern[i+1], i)
                assert i + 1 <= j <= str.find('\n', i)
                str = str[j:]
                pattern = pattern[i+1:]
            assert str == pattern
            return True
        def check_value(x):
            if x == 10000:
                raise ValueError(42)
        def Zcb1(x):
            check_value(x)
            return x * 3
        BShort = new_primitive_type("short")
        BFunc = new_function_type((BShort,), BShort, False)
        f = callback(BFunc, Zcb1, -42)
        #
        seen = []
        oops_result = None
        def oops(*args):
            seen.append(args)
            return oops_result
        ff = callback(BFunc, Zcb1, -42, oops)
        #
        orig_stderr = sys.stderr
        orig_getline = linecache.getline
        try:
            linecache.getline = lambda *args: 'LINE'    # hack: speed
up PyPy tests
            sys.stderr = cStringIO.StringIO()
            if hasattr(sys, '__unraisablehook__'):          # work around pytest
                sys.unraisablehook = sys.__unraisablehook__ # on recent CPythons
            assert f(100) == 300
            assert sys.stderr.getvalue() == ''
            assert f(10000) == -42
>           assert matches(sys.stderr.getvalue(), """\
    From cffi callback <function$Zcb1 at 0x$>:
    Traceback (most recent call last):
      File "$", line $, in Zcb1
        $
      File "$", line $, in check_value
        $
    ValueError: 42
    """, """\
    Exception ignored from cffi callback <function$Zcb1 at 0x$>:
    Traceback (most recent call last):
      File "$", line $, in Zcb1
        $
      File "$", line $, in check_value
        $
    ValueError: 42
    """, """\
    Exception ignored from cffi callback <function$Zcb1 at 0x$>:
    Traceback (most recent call last):
      File "$", line $, in Zcb1
        $
        $
      File "$", line $, in check_value
        $
        $
    ValueError: 42
    """)

c/test_c.py:1387:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

istr = 'Exception ignored from cffi callback <function
test_callback_exception.<locals>.Zcb1 at 0x7f1149b839c0>:\nTraceback
(...est/python-cffi/python-cffi-1.15.1/c/test_c.py", line 1362, in
check_value\n    raise>
ipattern = 'Exception ignored from cffi callback <function$Zcb1 at
0x$>:\nTraceback (most recent call last):\n  File "$", line $, in
Zcb1\n    $\n    $\n  File "$", line $, in check_value\n    $\n
$\nValueError>
ipattern38 = 'Exception ignored from cffi callback <function$Zcb1 at
0x$>:\nTraceback (most recent call last):\n  File "$", line $, in
Zcb1\n    $\n  File "$", line $, in check_value\n    $\nValueError:
42\n'
ipattern311 = 'Exception ignored from cffi callback <function$Zcb1 at
0x$>:\nTraceback (most recent call last):\n  File "$", line $, in
Zcb1\n    $\n    $\n  File "$", line $, in check_value\n    $\n
$\nValueEr>

    def matches(istr, ipattern, ipattern38, ipattern311):
        if sys.version_info >= (3, 8):
            ipattern = ipattern38
        if sys.version_info >= (3, 11):
            ipattern = ipattern311
        str, pattern = istr, ipattern
        while '$' in pattern:
            i = pattern.index('$')
>           assert str[:i] == pattern[:i]
E           AssertionError: assert '\n  Fi' == '\n    '
E             Strings contain only whitespace, escaping them using repr()
E             - '\n    '
E             ?      ^^
E             + '\n  Fi'
E             ?      ^^

c/test_c.py:1353: AssertionError

--- End Message ---
--- Begin Message ---
Source: python-cffi
Source-Version: 1.15.1-3
Done: Stefano Rivera <stefa...@debian.org>

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

Debian distribution maintenance software
pp.
Stefano Rivera <stefa...@debian.org> (supplier of updated python-cffi 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: Sun, 16 Oct 2022 22:00:09 +0200
Source: python-cffi
Architecture: source
Version: 1.15.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Stefano Rivera <stefa...@debian.org>
Closes: 1021873
Changes:
 python-cffi (1.15.1-3) unstable; urgency=medium
 .
   * Patch: Python 3.11 (final) support. (Closes: #1021873)
Checksums-Sha1:
 f96400b2a6a5037022882d015b6c6528c2f557dc 1908 python-cffi_1.15.1-3.dsc
 eea2b91ad53b0f04dd00593bf34ed00af18f62b5 8172 
python-cffi_1.15.1-3.debian.tar.xz
 c1ecf670b0d103f6dd92537623cf0e342b753496 7973 
python-cffi_1.15.1-3_source.buildinfo
Checksums-Sha256:
 639baf0a7030295fc7f57a8f6f26b577505ed53341f70af0a3b0edb31138c0d8 1908 
python-cffi_1.15.1-3.dsc
 763be6c1cc3b45ee073286f389baef11bd5d57c987846e74105133faaf73ff40 8172 
python-cffi_1.15.1-3.debian.tar.xz
 1b2b05ffb7f190792acc30c0a6ef29bfc53f1f9e92ad6fdc8bb2fa072862e948 7973 
python-cffi_1.15.1-3_source.buildinfo
Files:
 7a8f91ae53dbf342d83e35aded373b35 1908 python optional python-cffi_1.15.1-3.dsc
 6e163c673794ff7fb9de3be69a0cf7d6 8172 python optional 
python-cffi_1.15.1-3.debian.tar.xz
 53a12ca1a8d8c2a0298d09946cbc8e98 7973 python optional 
python-cffi_1.15.1-3_source.buildinfo

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

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCY0xi6xQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2ErGAP9qVMIxB925Q6xarff3TyH6cx4Sbu4a
AIslVz29tf9amAD/Un4HfVLwz41NZk0sEJZeleqWgbny4oqSTReYMkJA1AQ=
=Czu8
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to