-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update pickle.py from 3.14.2
#6982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9706cec
Update `_compat_pickle.py` from 3.14.2
ShaharNaveh 4b34595
Update `pickle.py` from 3.14.2
ShaharNaveh af64533
Update pickletools and tests
ShaharNaveh a530d5a
Update all other pickle related files
ShaharNaveh 8381cc9
Make `test_extcall` to use modified doctest checker
ShaharNaveh ae4cacb
Merge remote-tracking branch 'upstream/main' into update-compat-pickle
ShaharNaveh 0911855
Restore patch
ShaharNaveh a65a1e5
Address review
ShaharNaveh 36e18d5
Merge remote-tracking branch 'upstream/main' into update-compat-pickle
ShaharNaveh a36ab17
Fix grammer
ShaharNaveh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Address review
- Loading branch information
commit a65a1e534d895c6938f125746f90db21b3959c61
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -12,9 +12,13 @@ | |||||
| class DocTestChecker(doctest.OutputChecker): | ||||||
| """ | ||||||
| Custom output checker that lets us to add: `+EXPECTED_FAILURE` for doctest tests. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor grammar nitpick from a native speaker of English:
Suggested change
Also, consider expanding upon what exactly this option string does (allows us to mark doctest examples as currently failing, for accountability). |
||||||
|
|
||||||
| We want to be able to mark failing doctest test the same way we do with normal | ||||||
| unit test, without this class we would have to skip the doctest for the CI to pass. | ||||||
| """ | ||||||
|
|
||||||
| def check_output(self, want, got, optionflags): | ||||||
| res = super().check_output(want, got, optionflags) | ||||||
| if optionflags & EXPECTED_FAILURE: | ||||||
| return want != got | ||||||
| return super().check_output(want, got, optionflags) | ||||||
| res = not res | ||||||
| return res | ||||||
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fanninpm can you please review? I've modified this slightly (renamed the class, and didn't use an
ifinside thecheck_outputmethod)