Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 10, 2020
Merged

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

merged 1 commit into from
Jun 10, 2020

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.

None yet

3 participants