]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2020 17:24:56 +0000 (19:24 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2020 17:24:56 +0000 (19:24 +0200)
commit4a4f660cfde8b683634c53e6214a6baa51de43b1
treede76ecc7629c65431f6e1386c85d404798e1a1ac
parent9419158a3e67ba2eadf33215568003ed723b0a98
bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785)

test_repl.test_close_stdin() now calls
support.suppress_msvcrt_asserts() to fix the test on Windows.

* Move suppress_msvcrt_asserts() from test.libregrtest.setup to
  test.support. Make its verbose parameter optional: verbose=False by
  default.
* SuppressCrashReport now uses SetErrorMode() of the msvcrt module,
  rather than using ctypes.
* Remove also an unused variable (deadline) in wait_process().

(cherry picked from commit f6e58aefde2e57e4cb11ea7743955da53a3f1e80)
Lib/test/audit-tests.py
Lib/test/libregrtest/setup.py
Lib/test/support/__init__.py
Lib/test/test_repl.py