cpython/Lib/test/test_pyrepl
Miss Islington (bot) 73f77e642a
[3.13] gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757) (GH-121825)
console.compile with the "single" param throws an exception when
there are multiple statements, never allowing to adding newlines
to a pasted code block (gh-121610)

This adds a few extra checks to allow extending when in an indented
block, and tests for a few examples.

(cherry picked from commit 7d111dac16)

Co-authored-by: saucoide <32314353+saucoide@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-16 08:28:41 +02:00
..
__init__.py [3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850) 2024-05-31 17:18:28 +02:00
__main__.py
support.py [3.13] gh-121499: Fix multi-line history rendering in the REPL (GH-121531) (#121679) 2024-07-13 15:56:56 +02:00
test_input.py
test_interact.py [3.13] gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757) (GH-121825) 2024-07-16 08:28:41 +02:00
test_keymap.py [3.13] gh-119357: Increase test coverage for keymap in _pyrepl (GH-119358) (#119414) 2024-05-22 23:13:01 +02:00
test_pyrepl.py [3.13] gh-121605: Fix test hang when pyrepl is not available (GH-121820) (GH-121823) 2024-07-16 01:15:18 +02:00
test_reader.py [3.13] gh-121609: Fix pasting of characters containing unicode character joiner (GH-121667) (#121733) 2024-07-14 03:02:46 -06:00
test_unix_console.py [3.13] Use Cirrus M1 macOS runners for CI (GH-119979) (GH-119986) 2024-06-03 18:15:37 +02:00
test_unix_eventqueue.py [3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850) 2024-05-31 17:18:28 +02:00
test_windows_console.py [3.13] Use Cirrus M1 macOS runners for CI (GH-119979) (GH-119986) 2024-06-03 18:15:37 +02:00