This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Repository navigation
unpin pytest-httpserver, fix patches - #12507
Merged
Merged
Conversation
S3 Image Test Results (AMD64 / ARM64) 2 files 2 suites 8m 40s ⏱️ Results for commit b9036a4. |
bentsku
approved these changes
Apr 9, 2025
bentsku
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Thanks for addressing the issue, and glad to see the actual fix was approved and merged upstream! 🥳 soon we can update it and remove this all together! I must have an old PR lying around removing it 👀 #10054 but this is so old and has conflict now 😄
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
In the past we were facing issues with our integration tests timing out due to shutdowns being blocked. It turns out that some of the
pytest-httpserverthreads were not properly shut down. @bentsku fixed this by patching theHTTPServerclass to spawn a deamon thread to make sure that it cannot block the shutdown of the interpreter with #10052.This patch broke with the latest release, as the
startmethod was modified (which is why we did not upgrade to the latest version 1.1.2, but introduced an upper limit with 01a97ba).This PR updates the patch and updates the dependency declaration for
pytest-httpserver. I also filed csernazs/pytest-httpserver#411 which would allow us to remove the patch completely if it gets merged upstream.Changes
pytest-httpserverin thepyproject.tomland in therequirement*.txtlock files.pytest-httpserver==1.1.2.