cpython/Lib/test/test_pyrepl
Miss Islington (bot) 214b430faf
[3.13] gh-121973: Fix flaky test_pyrepl tests (GH-122140) (GH-122173)
This fixes the flakiness in:
* test_inspect_keeps_globals_from_inspected_file
* test_inspect_keeps_globals_from_inspected_module

The output already includes newlines. Adding newlines for every entry in
the output list introduces non-determinism because it added '\n' in
places where stdout is flushed or some buffer becomes full.

The regex also needed to be updated because pyrepl includes control
characters -- the visible output on each line doesn't immediately follow
a newline character.

(cherry picked from commit 2c1b1e7a07)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-23 15:57:24 +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-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904) (#121916) 2024-07-17 16:52:46 +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-121973: Fix flaky test_pyrepl tests (GH-122140) (GH-122173) 2024-07-23 15:57:24 +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