-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-121245: a regression test for site.register_readline() #121259
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 all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8195067
Refactor site.register_readline()
skirpichev 8cbf9e5
+ news entry
skirpichev 9dd6305
+ add cleanup for test file
skirpichev 4c57916
Merge branch 'main' into fix-repl-121245-v2
skirpichev 41d0f3d
Update Lib/site.py (drop history length check)
skirpichev 595e5da
+ test exit_code
skirpichev e358963
Update Misc/NEWS.d/next/Library/2024-07-02-11-34-06.gh-issue-121245.s…
skirpichev 77a7baa
XXX skip test_not_wiping_history_file() if pyrepl can't be used
skirpichev 8ed572d
Revert "XXX skip test_not_wiping_history_file() if pyrepl can't be used"
skirpichev 753ef78
Merge branch 'master' into fix-repl-121245-v2
skirpichev f625be8
XXX keep only test
skirpichev d3dbbfb
+ test with/without basic repl
skirpichev d4b0f10
Revert news; lets just add a test
skirpichev 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
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
Oops, something went wrong.
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.
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.
I have tried and reverting the changes you did in
site.py
and running this test still succeedsThere 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.
Example:
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.
The test should fail when you revert #121255
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.
Ah thanks for pointing that out! I was confused by the fact that we have a NEWS entry in this PR claiming that it fixes the bug.
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.
This PR amends that news entry.
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.
Sorry for a confusion. I was thinking that this pr doesn't deserve a separate news entry. Just a minor cleanup and adds a test. #121255 was a quick fix for annoying issue.
FYI: news entry slightly corrected as I've reverted a guard that prevents wiping history file (e.g. if user run readline.clear_history()).
Unfortunately, I can't reproduce build failure on "Address sanitizer" job. It looks as
PYTHON_HISTORY
either doesn't affect the interpreter inrun_repl()
(but it should, there is no-E
option!) orwrite_history_file()
just fails.