Skip to content
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

gh-119357: Increase test coverage for keymap in _pyrepl #119358

Merged
merged 4 commits into from
May 22, 2024

Conversation

eugenetriguba
Copy link
Contributor

@eugenetriguba eugenetriguba commented May 21, 2024

This PR adds a few test cases to the keymap module tests to increase the coverage.

Lib/_pyrepl/keymap.py                 79      0     48      0   100%

@@ -30,7 +30,7 @@
# types
Command = commands.Command
if False:
from .types import Callback, SimpleContextManager, KeySpec, CommandName
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: these two aren't used

@eugenetriguba
Copy link
Contributor Author

I'd think this PR can skip news

@ambv ambv added skip news topic-repl Related to the interactive shell labels May 21, 2024
Lib/_pyrepl/keymap.py Outdated Show resolved Hide resolved
@eugenetriguba
Copy link
Contributor Author

eugenetriguba commented May 21, 2024

@ambv beat me to it, thanks for the fix 🙂 I'll update the issue to more clearly encompass all of PyREPL instead of just the keymap module. Thanks for the feedback, let me know if you had any other requested changes!

@ambv ambv merged commit 73ab83b into python:main May 22, 2024
39 checks passed
@lysnikolaou lysnikolaou added the needs backport to 3.13 bugs and security fixes label May 22, 2024
@miss-islington-app
Copy link

Thanks @eugenetriguba for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @eugenetriguba and @ambv, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 73ab83b27f105a4509046ce26e35f20d66625195 3.13

lysnikolaou pushed a commit to lysnikolaou/cpython that referenced this pull request May 22, 2024
…ythonGH-119358)

(cherry picked from commit 73ab83b)

Co-authored-by: Eugene Triguba <eugenetriguba@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@bedevere-app
Copy link

bedevere-app bot commented May 22, 2024

GH-119414 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label May 22, 2024
ambv added a commit that referenced this pull request May 22, 2024
…9358) (#119414)

(cherry picked from commit 73ab83b)

Co-authored-by: Eugene Triguba <eugenetriguba@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news topic-repl Related to the interactive shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants