Repository navigation
test(diagnostics): cover warning retention and reset behavior - #121
Open
glenlouis8 wants to merge 1 commit into
Open
glenlouis8 wants to merge 1 commit into
glenlouis8 wants to merge 1 commit into
Conversation
Contributor
Author
|
The Wheels (macos-14) job was cancelled after about 20 minutes without getting a runner, so it looks like a runner queue timeout rather than a failure from this change (it only touches tests/test_core_semantics.py). Everything else passes. I can't rerun it without admin rights, so could a maintainer re-run the failed job? Thanks. |
This branch has not been deployed
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.
Closes #94
Extends the diagnostics-primitives section of
tests/test_core_semantics.pyusing the existingdev_modefixture andcapsys.Covers:
get_warnings()doesn't change the internal logclear_warnings()empties the log and lets a usedwarn_oncekey emit againwarn_once()without a key dedupes by message, and different messages stay distinctwarn_once()in production mode doesn't consume its key, so it still emits after dev mode is enabledTest-only change.
./scripts/check.shpasses.