Public bug reported:

python-anyio 3.5.0-3ubuntu2 no longer builds in jammy. dh_auto_test fails with
8 failed tests in tests/streams/test_tls.py:

    8 failed, 739 passed, 5 skipped, 8 deselected

Failing tests, each on the asyncio and asyncio+uvloop backends:

 * TestTLSStream.test_extra_attributes: TLSAttribute.shared_ciphers is None,
   the test expects a list.
 * TestTLSStream.test_ragged_eofs[server_standard]: the server side records no
   exception, the test expects an OSError.
 * TestTLSStream.test_ragged_eofs[client_standard]:
   DID NOT RAISE <class 'anyio.BrokenResourceError'>
 * TestTLSListener.test_handshake_fail: the handler gets
   SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF)'), the test
   expects BrokenResourceError.

[Reproduction]

A no-change rebuild of the published source in a PPA that depends on the
jammy security pocket fails with the result above:

https://launchpad.net/~gianz/+archive/ubuntu/test/+build/33985622

The same 8 tests fail in a local sbuild in a jammy-amd64 schroot.

[What changed]

The archive build of this version, from 2022-03-19, passed all 8 tests:

https://launchpad.net/ubuntu/+source/python-
anyio/3.5.0-3ubuntu2/+build/23484309

Versions in the two builds:

    2022-03-19, passes: python3.10 3.10.3-1, openssl 3.0.1-0ubuntu1
    2026-11-18, fails:  python3.10 3.10.12-1~22.04.18, openssl 3.0.2-0ubuntu1.30

The tests bind 127.0.0.1 explicitly, so they do not depend on name resolution
or IPv6. They look like test expectations that no longer hold with the
python3.10 and openssl currently in jammy; which update changed the behaviour
has not been bisected.

** Affects: python-anyio (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: python-anyio (Ubuntu Jammy)
     Importance: Undecided
         Status: New


** Tags: ftbfs jammy

** Also affects: python-anyio (Ubuntu Jammy)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174890

Title:
  python-anyio 3.5.0-3ubuntu2 FTBFS in jammy: TLS stream tests fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-anyio/+bug/2174890/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to