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

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)
(cherry picked from commit 4a4f660cfde8b683634c53e6214a6baa51de43b1)
Lib/test/audit-tests.py
Lib/test/libregrtest/setup.py
Lib/test/support/__init__.py
Lib/test/test_repl.py