Repository navigation
Conversation
Saadia751
reviewed
Oct 14, 2026
Saadia751
left a comment
There was a problem hiding this comment.
I exercised both queue backends against a small independent model: 180 deterministic add/update/remove operations per backend, with negative priorities and stable ties. Queue length and peek() match the model after every operation, and draining matches priority/insertion order. Empty defaults and errors also agree.
This adds an interleaved-operation check beyond the new targeted regressions. Checked 7ea6c0bade3e with standalone Python 3.12.14 checks (726 passing assertions). I haven't run the full upstream suite.
Owner
|
These tests pass on current master, so they pin behavior that already works; not adding test weight without a bug. Closing. |
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.
The change
Add public API regression coverage for HeapPriorityQueue and SortedPriorityQueue. The existing tests exercise numeric ordering, but do not pin reprioritization, stable ties between nonorderable tasks, or culling after removal. The new cases cover these behaviors plus removed-only queue defaults and errors.
No production behavior changes. This is a test gap found in https://github.com/mahmoud/boltons/blob/4e5faa3d7e4008d89e0d8bf1ea87b6d9a061a16d/tests/test_queueutils.py, rather than a reported bug.
Validation:
uvx --with tox-uv tox -e py314passed all 690 tests and doctests (5 existing deprecation warnings). Focused queue tests pass all 14 cases. Two in-memory mutation checks showed the new tests fail when stable tie counters or removed-entry marking are disabled.git diff --checkpassed.The backstory
I’m working on making useful open-source contributions. This contribution came from reviewing Boltons’ queue tests with Codex and finding missing coverage for priority updates and removed entries.
AI assistance
Original user request
Act as the coordinator for multiple subagents making useful contributions to open-source projects. Dispatch subagents to find and implement distinct, well-scoped tasks: bug fixes, requested improvements, missing tests, or substantive documentation corrections.
The goal is genuinely valuable, maintainable contributions—not maximizing the number of pull requests.
Task selection and coordination
Respect each repository
Implementation
Verification and review
For each completed task, provide the repository and issue link, a concise explanation of the problem and solution, the branch and changed files, verification results, remaining concerns, and a pull-request draft following that repository’s template.
Research and implement autonomously, but keep public actions behind my approval: do not post comments, open issues, push to remote repositories, or submit pull requests until I approve.