Your message dated Tue, 02 Jun 2026 19:32:06 +0000
with message-id <[email protected]>
and subject line Bug#1137653: fixed in pytest-httpbin 2.1.0-1+deb13u1
has caused the Debian Bug report #1137653,
regarding pytest-httpbin: FTBFS in trixie
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 [email protected]
immediately.)


-- 
1137653: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137653
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:pytest-httpbin
Version: 2.1.0-1
Severity: important
Tags: ftbfs trixie patch
Control: forwarded -1 https://github.com/kevin1024/pytest-httpbin/issues/99

Dear maintainer:

During a rebuild of all packages in trixie, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/trixie/

Note: I managed to fix this by applying this simple patch:

--- a/pytest_httpbin/serve.py
+++ b/pytest_httpbin/serve.py
@@ -68,8 +68,8 @@ class SecureWSGIServer(WSGIServer):
                 address,
             )
         except Exception as e:
-            print("pytest-httpbin server hit an exception serving request: %s" 
% e)
-            print("attempting to ignore so the rest of the tests can run")
+            print("pytest-httpbin server hit an exception serving request: %s" 
% e, flush=True)
+            print("attempting to ignore so the rest of the tests can run", 
flush=True)
             raise
 
     def setup_environ(self):

which I also forwarded upstream:

https://github.com/kevin1024/pytest-httpbin/pull/100

The test failure does not seem to happen in forky/sid, but I believe the patch 
is
correct anyway, so my plan is to apply the patch in unstable first (for 
completeness),
and then make an upload for stable-proposed-updates.

Note: If you want to reproduce this in trixie, please try 
GRUB_CMDLINE_LINUX="nr_cpus=1"
first, as the probability of failure seems to be a lot higher that way.


About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:pytest-httpbin, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
tests/test_server.py::test_dont_crash_on_handshake_timeout pytest-httpbin 
server hit an exception serving request: _ssl.c:1012: The handshake operation 
timed out
attempting to ignore so the rest of the tests can run
FAILED

=================================== FAILURES ===================================
_____________________ test_dont_crash_on_handshake_timeout _____________________

httpbin_secure = <pytest_httpbin.serve.SecureServer object at 0x7f2c829e7cb0>
capsys = <_pytest.capture.CaptureFixture object at 0x7f2c82884050>

    def test_dont_crash_on_handshake_timeout(httpbin_secure, capsys):
        with socket.socket() as sock:
            sock.connect((httpbin_secure.host, httpbin_secure.port))
            # this request used to hang
            assert sock.recv(1) == b""
    
>       assert (
            re.match(
                r"pytest-httpbin server hit an exception serving request:.* The 
"
                "handshake operation timed out\nattempting to ignore so the 
rest "
                "of the tests can run\n",
                capsys.readouterr().out,
            )
            is not None
        )
E       AssertionError: assert None is not None
E        +  where None = <function match at 0x7f2c84d8a8e0>('pytest-httpbin 
server hit an exception serving request:.* The handshake operation timed 
out\nattempting to ignore so the rest of the tests can run\n', '')
E        +    where <function match at 0x7f2c84d8a8e0> = re.match
E        +    and   '' = CaptureResult(out='', err='').out
E        +      where CaptureResult(out='', err='') = readouterr()
E        +        where readouterr = <_pytest.capture.CaptureFixture object at 
0x7f2c82884050>.readouterr

tests/test_server.py:63: AssertionError
=========================== short test summary info ============================
FAILED tests/test_server.py::test_dont_crash_on_handshake_timeout - Assertion...
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
========================= 1 failed, 19 passed in 2.17s =========================
E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: 
python3.13 -m pytest -v -x -s
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make[1]: *** [debian/rules:15: override_dh_auto_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
Source: pytest-httpbin
Source-Version: 2.1.0-1+deb13u1
Done: Santiago Vila <[email protected]>

We believe that the bug you reported is fixed in the latest version of
pytest-httpbin, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <[email protected]> (supplier of updated pytest-httpbin 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 [email protected])


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

Format: 1.8
Date: Sun, 31 May 2026 21:00:00 +0200
Source: pytest-httpbin
Architecture: source
Version: 2.1.0-1+deb13u1
Distribution: trixie
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Santiago Vila <[email protected]>
Closes: 1137653
Changes:
 pytest-httpbin (2.1.0-1+deb13u1) trixie; urgency=medium
 .
   * Team upload.
   * Disable flaky test. Closes: #1137653.
Checksums-Sha1:
 a127149d182ac1a84540314c0fee9f371f02ce31 1982 
pytest-httpbin_2.1.0-1+deb13u1.dsc
 23489b734473931cfb1ce9f85d2ed11b9bae2695 5352 
pytest-httpbin_2.1.0-1+deb13u1.debian.tar.xz
 b9cadc40913a34ce6816c2cffcda34bd5a6979df 7526 
pytest-httpbin_2.1.0-1+deb13u1_source.buildinfo
Checksums-Sha256:
 90b82555e28fbf414d77131b7755c079dec0b4c1a53804779390ae232038846e 1982 
pytest-httpbin_2.1.0-1+deb13u1.dsc
 469034f037703cf8a5453799003d32b808f6022f512a4ed21dd8e7ba28fb0afc 5352 
pytest-httpbin_2.1.0-1+deb13u1.debian.tar.xz
 94f3ff2dc886dabf5619e5854f7e87dfebbaad7a1338c8376239a99aec21b7b8 7526 
pytest-httpbin_2.1.0-1+deb13u1_source.buildinfo
Files:
 ab53b9005de7c9c40fce363bccde8f24 1982 python optional 
pytest-httpbin_2.1.0-1+deb13u1.dsc
 5510ee07cdb91af4be06be6b494255f0 5352 python optional 
pytest-httpbin_2.1.0-1+deb13u1.debian.tar.xz
 b7f4571b00e0b8223c0681e0cb6f7c15 7526 python optional 
pytest-httpbin_2.1.0-1+deb13u1_source.buildinfo

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

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmochq8ACgkQQc5/C58b
izIgawf8CsgBD9A3xI5l8Bq0TpTm1lZywiDMPuH+0JhGvrGXvuB/PAYr3P0svBTK
/p4MiHWh8KAzNwJzv6gfTkjV5/AAOvX58g2ic8zbfRSGcZz2BJnAiakTHf4ndwVX
v3VBzyUGPyDpZxQUoa0zJ2yIpcDgPCrLh2LrsARUYb1J7b7K3KRkn4DcSlzldSL0
U5thKlQulJLOF7rpoVX2aWy1UbV4jae+5daASAP/soNjSF9Pf/9kuPCjN0mFjnGI
80XMapJAkTigx9GyIckVYXmVauZ7Z7A6aC3ek4tc3wzhgbud620rDxEeNGBseaS2
uffSjy8+AZN3P4gv9pLntauncwoqdw==
=DuYt
-----END PGP SIGNATURE-----

Attachment: pgpgpneLA6sPX.pgp
Description: PGP signature


--- End Message ---

Reply via email to