cpython/Lib/test/test_pyrepl
Sam Gross 2c1b1e7a07
gh-121973: Fix flaky test_pyrepl tests (GH-122140)
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.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-23 15:17:13 +02:00
..
__init__.py gh-111201: Support pyrepl on Windows (#119559) 2024-05-31 09:49:03 +02:00
__main__.py
support.py gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904) 2024-07-17 16:18:42 +02:00
test_input.py
test_interact.py gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757) 2024-07-16 01:33:57 +02:00
test_keymap.py gh-119357: Increase test coverage for keymap in _pyrepl (#119358) 2024-05-22 04:36:01 +02:00
test_pyrepl.py gh-121973: Fix flaky test_pyrepl tests (GH-122140) 2024-07-23 15:17:13 +02:00
test_reader.py gh-121609: Fix pasting of characters containing unicode character joiner (#121667) 2024-07-13 10:44:18 +00:00
test_unix_console.py Use Cirrus M1 macOS runners for CI (GH-119979) 2024-06-03 17:32:40 +02:00
test_unix_eventqueue.py gh-111201: Support pyrepl on Windows (#119559) 2024-05-31 09:49:03 +02:00
test_windows_console.py Use Cirrus M1 macOS runners for CI (GH-119979) 2024-06-03 17:32:40 +02:00