You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
python314Packages.base64io: fix test_base64io_decode_readlines test - #566228
Python 3.14 changed the value of io.DEFAULT_BUFFER_SIZE, which broke some assumptions in the test case test_base64io_decode_readlines. I changed the test case and test case parameters to depend on io.DEFAULT_BUFFER_SIZE to fix this. This change is backwards compatible with old versions that use the original value of io.DEFAULT_BUFFER_SIZE (tested with Python 3.13).
I have an open PR upstream to fix this issue. If the preference would be to wait and see if upstream accepts the changes, I can pause this PR until a decision is made there.
I believe this fix resolves parts of the following tracking issues:
After looking at the package that failed to build (aws-encryption-sdk-cli), it seems like that package has been broken since at least 2026-07-14 based on hydra logs. Prior to this PR, it was failing because base64io was broken. Now it fails because of its own unit tests. All failing unit tests don't seem to use base64io at all and are failing because of argparse. Therefore, I think that the issues with that package fall out of scope for this PR. I'll still git-bisect to confirm.
After further research, aws-encryption-sdk-cli is failing because it relies on an argparse feature that was removed in Python 3.14 (nesting mutually exclusive args, removed in this PR). Its failure to build isn't related to this PR.
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
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.
Things done
Python 3.14 changed the value of
io.DEFAULT_BUFFER_SIZE, which broke some assumptions in the test casetest_base64io_decode_readlines. I changed the test case and test case parameters to depend onio.DEFAULT_BUFFER_SIZEto fix this. This change is backwards compatible with old versions that use the original value ofio.DEFAULT_BUFFER_SIZE(tested with Python 3.13).I have an open PR upstream to fix this issue. If the preference would be to wait and see if upstream accepts the changes, I can pause this PR until a decision is made there.
I believe this fix resolves parts of the following tracking issues:
Tracking: aarch64-linux packages that have never built successfully on Hydra #565344
[Tracking] python314 failures #475732
Tracking: Darwin packages that have never built successfully on Hydra #563742
Built on platform:
Tested, as applicable:
passthru.tests.Ran
nixpkgs-reviewon this PR. See nixpkgs-review usage.Tested basic functionality of all binary files, usually in
./result/bin/.Nixpkgs Release Notes
NixOS Release Notes
Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.
Follows the automation/AI policy.