HomeSoftware Heritage

Fix support of Werkzeug 2.1.0

Description

Fix support of Werkzeug 2.1.0

Since https://github.com/pallets/werkzeug/commit/74601150b559c73a8c8732b4c67bbc6377d1a7df
(published yesterday as part of version 2.1.0), Werkzeug crashes when WERKZEUG_RUN_MAIN
is true but WERKZEUG_SERVER_FD is not provided.

This is legitimate, because applications should not set WERKZEUG_RUN_MAIN.

This commit rewrites the hack hiding the server banner so it still works
with this Werkzeug version.

Details

Provenance
vlorentzAuthored on Mar 29 2022, 2:32 PM
vlorentzPushed on Mar 29 2022, 2:38 PM
Differential Revision
D7455: Fix support of Werkzeug 2.1.0
Parents
rDCOREba5a6ef533d5: pytest: Exclude build directory for tests discovery
Branches
Unknown
Tags
Unknown
References
tag: v2.4.0
Build Status
Buildable 27904
Build 43691: test-and-buildJenkins console · Jenkins