Skip to content

[3.8] bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785)#20787

Merged
vstinner merged 1 commit intopython:3.8from
vstinner:suppress_msvcrt_asserts38
Jun 10, 2020
Merged

[3.8] bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785)#20787
vstinner merged 1 commit intopython:3.8from
vstinner:suppress_msvcrt_asserts38

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 10, 2020

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 f6e58ae)
(cherry picked from commit 4a4f660)

https://bugs.python.org/issue40826

…-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 f6e58ae)
(cherry picked from commit 4a4f660)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants