]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2020 16:49:23 +0000 (18:49 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2020 16:49:23 +0000 (18:49 +0200)
commitf6e58aefde2e57e4cb11ea7743955da53a3f1e80
treeae5a760fc2db639f50d8a08e600267b865ac852c
parentd36cf5f1d20ce9f111a8fc997104785086e8eee6
bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779)

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.
* Add msvcrt.GetErrorMode().
* SuppressCrashReport now uses GetErrorMode() and SetErrorMode() of
  the msvcrt module, rather than using ctypes.
* Remove also an unused variable (deadline) in wait_process().
Lib/test/audit-tests.py
Lib/test/libregrtest/setup.py
Lib/test/support/__init__.py
Lib/test/test_repl.py
PC/clinic/msvcrtmodule.c.h
PC/msvcrtmodule.c