Unbreak unit tests with Twisted 25.5.0 by add parsePOSTFormSubmission arg to FakeSite#18577
Merged
anoadragon453 merged 7 commits intodevelopfrom Jun 24, 2025
Merged
Unbreak unit tests with Twisted 25.5.0 by add parsePOSTFormSubmission arg to FakeSite#18577anoadragon453 merged 7 commits intodevelopfrom
25.5.0 by add parsePOSTFormSubmission arg to FakeSite#18577anoadragon453 merged 7 commits intodevelopfrom
Conversation
Twisted's `Site` exposes `_parsePOSTFormSubmission` which is accessed by `Request` during initialisation (since Twisted 25.5.0). Provide the same attribute so that tests remain compatible across Twisted versions.
Otherwise they end up overrunning Twisted’s AMP protocol message size and raising a `TooLong` error.
6f26c31 to
b3ddde3
Compare
erikjohnston
approved these changes
Jun 24, 2025
Member
Author
|
CI failures look like a flake, so going to merge. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Twisted's
Siteexposes_parsePOSTFormSubmissionwhich is accessed byRequestduring initialisation (since Twisted 25.5.0, https://github.com/twisted/twisted/pull/12413/files#diff-6c8252af78a4a1c3cdfd2474b7349fb479c0e0a308a8336e4ddab729f55df9baR802).Provide the same attribute so that tests remain compatible across Twisted versions.
Several other changes were needed as well, see each commit.
Fixes #18565.
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.