Your message dated Fri, 08 May 2026 08:49:15 +0000
with message-id <[email protected]>
and subject line Bug#1135395: fixed in flask 3.1.3-2
has caused the Debian Bug report #1135395,
regarding flask: FTBFS: test_bad_environ_raises_bad_request failes
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.)


-- 
1135395: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1135395
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:flask
Version: 3.1.3-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, 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/202605/

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:flask, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   debian/rules override_dh_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_clean
rm -rf .mypy_cache
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" 
module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_flask  
* Building wheel...
Successfully built flask-3.1.3-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.14 with 
"installer" module
I: pybuild plugin_pyproject:142: Building wheel for python3.13 with "build" 
module
I: pybuild base:385: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_flask  
* Building wheel...
Successfully built flask-3.1.3-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.13 with 
"installer" module
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
LC_ALL=C.UTF-8 http_proxy='' dh_auto_test
I: pybuild pybuild:390: cp CHANGES.rst 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_flask/build
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_flask/build; 
python3.14 -m pytest "-k not test_main_module_paths"
============================= test session starts ==============================
platform linux -- Python 3.14.4, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_flask/build
configfile: pyproject.toml
testpaths: tests
collected 490 items

tests/test_appctx.py ..............                                      [  2%]
tests/test_async.py ........                                             [  4%]
tests/test_basic.py .................................................... [ 15%]
........................................................................ [ 29%]
......                                                                   [ 31%]
tests/test_blueprints.py ............................................... [ 40%]
.............                                                            [ 43%]
tests/test_cli.py ...............................................ss.s... [ 54%]
....                                                                     [ 55%]
tests/test_config.py ...................                                 [ 58%]
tests/test_converters.py ..                                              [ 59%]
tests/test_helpers.py ...................................                [ 66%]
tests/test_instance_config.py .......                                    [ 67%]
tests/test_json.py ...............................                       [ 74%]
tests/test_json_tag.py ..............                                    [ 77%]
tests/test_logging.py ......                                             [ 78%]
tests/test_regression.py .                                               [ 78%]
tests/test_reqctx.py .......ss..F..                                      [ 81%]
tests/test_request.py ...                                                [ 82%]
tests/test_session_interface.py .                                        [ 82%]
tests/test_signals.py .......                                            [ 83%]
tests/test_subclassing.py .                                              [ 83%]
tests/test_templating.py ................................                [ 90%]
tests/test_testing.py .........................                          [ 95%]
tests/test_user_error_handler.py .........                               [ 97%]
tests/test_views.py .............                                        [100%]

=================================== FAILURES ===================================
_____________________ test_bad_environ_raises_bad_request ______________________

    def test_bad_environ_raises_bad_request():
        app = flask.Flask(__name__)
    
        from flask.testing import EnvironBuilder
    
        builder = EnvironBuilder(app)
        environ = builder.get_environ()
    
        # use a non-printable character in the Host - this is key to this test
        environ["HTTP_HOST"] = "\x8a"
    
        with app.request_context(environ):
            response = app.full_dispatch_request()
>       assert response.status_code == 400
E       assert 404 == 400
E        +  where 404 = <Response streamed [404 NOT FOUND]>.status_code

tests/test_reqctx.py:293: AssertionError
=========================== short test summary info ============================
FAILED tests/test_reqctx.py::test_bad_environ_raises_bad_request - assert 404...
=================== 1 failed, 484 passed, 5 skipped in 1.23s ===================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_flask/build; python3.14 -m pytest "-k 
not test_main_module_paths"
I: pybuild pybuild:390: cp CHANGES.rst 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_flask/build
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_flask/build; 
python3.13 -m pytest "-k not test_main_module_paths"
============================= test session starts ==============================
platform linux -- Python 3.13.12, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_flask/build
configfile: pyproject.toml
testpaths: tests
collected 490 items

tests/test_appctx.py ..............                                      [  2%]
tests/test_async.py ........                                             [  4%]
tests/test_basic.py .................................................... [ 15%]
........................................................................ [ 29%]
......                                                                   [ 31%]
tests/test_blueprints.py ............................................... [ 40%]
.............                                                            [ 43%]
tests/test_cli.py ...............................................ss.s... [ 54%]
....                                                                     [ 55%]
tests/test_config.py ...................                                 [ 58%]
tests/test_converters.py ..                                              [ 59%]
tests/test_helpers.py ...................................                [ 66%]
tests/test_instance_config.py .......                                    [ 67%]
tests/test_json.py ...............................                       [ 74%]
tests/test_json_tag.py ..............                                    [ 77%]
tests/test_logging.py ......                                             [ 78%]
tests/test_regression.py .                                               [ 78%]
tests/test_reqctx.py .......ss..F..                                      [ 81%]
tests/test_request.py ...                                                [ 82%]
tests/test_session_interface.py .                                        [ 82%]
tests/test_signals.py .......                                            [ 83%]
tests/test_subclassing.py .                                              [ 83%]
tests/test_templating.py ................................                [ 90%]
tests/test_testing.py .........................                          [ 95%]
tests/test_user_error_handler.py .........                               [ 97%]
tests/test_views.py .............                                        [100%]

=================================== FAILURES ===================================
_____________________ test_bad_environ_raises_bad_request ______________________

    def test_bad_environ_raises_bad_request():
        app = flask.Flask(__name__)
    
        from flask.testing import EnvironBuilder
    
        builder = EnvironBuilder(app)
        environ = builder.get_environ()
    
        # use a non-printable character in the Host - this is key to this test
        environ["HTTP_HOST"] = "\x8a"
    
        with app.request_context(environ):
            response = app.full_dispatch_request()
>       assert response.status_code == 400
E       assert 404 == 400
E        +  where 404 = <Response streamed [404 NOT FOUND]>.status_code

tests/test_reqctx.py:293: AssertionError
=========================== short test summary info ============================
FAILED tests/test_reqctx.py::test_bad_environ_raises_bad_request - assert 404...
=================== 1 failed, 484 passed, 5 skipped in 1.24s ===================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_flask/build; python3.13 -m pytest "-k 
not test_main_module_paths"
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" --parallel=2 returned exit code 13
make[1]: *** [debian/rules:22: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
Source: flask
Source-Version: 3.1.3-2
Done: Tianyu Chen <[email protected]>

We believe that the bug you reported is fixed in the latest version of
flask, 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.
Tianyu Chen <[email protected]> (supplier of updated flask 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: Thu, 07 May 2026 16:58:57 +0800
Source: flask
Built-For-Profiles: noudeb
Architecture: source
Version: 3.1.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Tianyu Chen <[email protected]>
Closes: 1135395
Changes:
 flask (3.1.3-2) unstable; urgency=medium
 .
   * Team upload.
   * Disable test_bad_environ_raises_bad_request (Closes: #1135395)
Checksums-Sha1:
 19b785c38b936ca60e38fe408fb2f1f4f008a874 2790 flask_3.1.3-2.dsc
 0c7e610956b2b17d1334618cfdf476fb61765fc2 10160 flask_3.1.3-2.debian.tar.xz
 addbee78e1380550a83a9054edc4fffbbb7a59dc 9491 flask_3.1.3-2_source.buildinfo
Checksums-Sha256:
 0b914c06e293aad6e1e6c6af46b0a4a69e6ff9e0ac451b81f36e106ed01e534d 2790 
flask_3.1.3-2.dsc
 d661928a66c994bb5652bec33f5dc5e652fd7eb2bf64a530900d3e1627426e39 10160 
flask_3.1.3-2.debian.tar.xz
 718f4df1abaaa88867d3e0b7d2ad121f0d28ba648c00050927e2eb29848c54e4 9491 
flask_3.1.3-2_source.buildinfo
Files:
 94afab33fbe06bc20abb23d122aee03b 2790 python optional flask_3.1.3-2.dsc
 932304f27507aa485638d9bb5015adb9 10160 python optional 
flask_3.1.3-2.debian.tar.xz
 7a7d2e1bca438b61d2817eb942b13f4d 9491 python optional 
flask_3.1.3-2_source.buildinfo

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

iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmn9nnUACgkQQoMEoXSN
zHpsQg/+J4VBFiSl073MG6PAVbmFmK4wS0Y00ajj4NGux8l2v9z3MSZA9BDOogvw
MIcy0zHh6x3K+JNNM7JSK1vx9ahKWspW7VIRWqpEPfRoJw/hsVMLCtUdPcpy1qxf
c+cPk/c1W8E1yc1H2FT8VoatVkfVibLJ7Wo48El4MYgiHeZU6WnFtgISwO84n/DR
M/wH3j0G3laFHpMx7sZiyJU3o7+v9LJbevXEhlDB1aUCqKlTL8zD3CrFJQBtC7t2
AwQ0YJgyrFEEjqq65YM5iDYLBdVzASCsrfpU1slr3blDyqBi4ZrVHsdzurWE8MxN
9Xz112ke0vOw5HR1g6Sqr/xgfcrALDDnNsP9u6OhhzKIPrK1rFI1ngmtXz7bZG62
MvZA6ILn4HiNPRE+cLa/Gbf+PTuU2qK4kaSzBOcega/EjefK/BghQyxqK1tm9Bsm
M5ys+FdpunGDICtz3XF6rPXhaYgm3m+fTsYxFxONEb8oN0d6RoD0yhp1DrIyQOnt
qjtL05D692KIQw+0BFqkFWiTBDRfQ3ZvSwz6DdWNghpKH6WkmgIqFyFE6p9b8pc/
I07kSzmtyoe3bYJWPVKPD7IRdi4+JLJjJ1QYZIuWaVN0WTgPoph/RstlfSP+DxRh
zch06Ssa3Nloqqzj/R501TlJvdd4+HheFzPojOxdfDZj/nvJf2Y=
=+5jH
-----END PGP SIGNATURE-----

Attachment: pgpxPJZIOmUOS.pgp
Description: PGP signature


--- End Message ---

Reply via email to