Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-121973: Fix flaky test_pyrepl tests (pythonGH-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 <[email protected]>
- Loading branch information