Skip to content

test_pyrepl.test_no_newline() failure on main #143394

Description

@smontanaro

Bug report

Bug description:

test_pyrepl started failing for me a day or two ago. According to git bisect, this is the problematic commit:

8a2deea1fc725f8147254f87c6042fcf75a1d03b is the first bad commit
commit 8a2deea1fc725f8147254f87c6042fcf75a1d03b
Author: Jan-Eric Nitschke <47750513+JanEricNitschke@users.noreply.github.com>
Date:   Fri Jan 2 14:04:37 2026 +0100

    gh-128067: Fix pyrepl overriding printed output without newlines (#138732)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>

 Lib/_pyrepl/unix_console.py                                        |  7 +++---
 Lib/_pyrepl/windows_console.py                                     |  7 +++---
 Lib/test/test_pyrepl/test_pyrepl.py                                | 38 +++++++++++++++++++++++++++++++
 Lib/test/test_pyrepl/test_unix_console.py                          | 14 ++++++++++++
 Lib/test/test_pyrepl/test_windows_console.py                       | 14 ++++++++++++
 Misc/ACKS                                                          |  1 +
 .../next/Windows/2025-09-14-13-35-44.gh-issue-128067.BGdP_A.rst    |  1 +
 7 files changed, 76 insertions(+), 6 deletions(-)
 create mode 100644 Misc/NEWS.d/next/Windows/2025-09-14-13-35-44.gh-issue-128067.BGdP_A.rst

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixestestsTests in the Lib/test dirtopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions