Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-123228: fix return type for _ReadlineWrapper.get_line_buffer()#123281

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
cfbolz merged 7 commits intopython:mainfromskirpichev:get_line_buffer-123228
Aug 24, 2024
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Revert "+ revert tests"
This reverts commit119362b.
  • Loading branch information
@skirpichev
skirpichev committedAug 24, 2024
commit989c8f307118e6ec7d707b93c67ffbd3d26f25db
7 changes: 6 additions & 1 deletionLib/test/test_pyrepl/test_pyrepl.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,7 +26,8 @@
make_clean_env,
)
from _pyrepl.console import Event
from _pyrepl.readline import ReadlineAlikeReader, ReadlineConfig
from _pyrepl.readline import (ReadlineAlikeReader, ReadlineConfig,
get_line_buffer)
from _pyrepl.readline import multiline_input as readline_multiline_input

try:
Expand DownExpand Up@@ -516,6 +517,10 @@ def test_basic(self):
self.assertEqual(output, "1+1")
self.assertEqual(clean_screen(reader.screen), "1+1")

# skip, if readline module is not available
import_module('readline')
self.assertIs(type(get_line_buffer()), str)

def test_multiline_edit(self):
events = itertools.chain(
code_to_events("def f():\n...\n\n"),
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp