Skip to content

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

Merged
ambv merged 4 commits into
python:mainfrom
eugenetriguba:gh-119357
May 22, 2024
Merged

gh-119357: Increase test coverage for keymap in _pyrepl#119358
ambv merged 4 commits into
python:mainfrom
eugenetriguba:gh-119357

Conversation

@eugenetriguba

@eugenetrigubaeugenetriguba commented May 21, 2024

Copy link
Copy Markdown
Contributor

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%

# types
Command = commands.Command
if False:
from .types import Callback, SimpleContextManager, KeySpec, CommandName

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

I'd think this PR can skip news

@ambvambv added skip news topic-repl Related to the interactive shell labels May 21, 2024
Comment threadLib/_pyrepl/keymap.py Outdated
@eugenetriguba

eugenetriguba commented May 21, 2024

Copy link
Copy Markdown
ContributorAuthor

@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:mainMay 22, 2024
@lysnikolaoulysnikolaou added the needs backport to 3.13 bugs and security fixes label May 22, 2024
@miss-islington-app

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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

@bedevere-appbedevere-appBot 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>
@JelleZijlstraJelleZijlstra mentioned this pull request May 28, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstopic-replRelated to the interactive shell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@eugenetriguba@ambv@lysnikolaou