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

Add tests for msvcrt module #108996

Closed
aisk opened this issue Sep 6, 2023 · 3 comments
Closed

Add tests for msvcrt module #108996

aisk opened this issue Sep 6, 2023 · 3 comments
Labels
OS-windows tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@aisk
Copy link
Member

aisk commented Sep 6, 2023

Bug report

Bug description:

msvcrt is a public module, but it has no tests.

Linked PRs

@aisk aisk added the type-bug An unexpected behavior, bug, or error label Sep 6, 2023
@AlexWaygood AlexWaygood added the tests Tests in the Lib/test dir label Sep 6, 2023
aisk added a commit to aisk/cpython that referenced this issue Sep 6, 2023
@AlexWaygood AlexWaygood changed the title msvcrt module have no tests msvcrt module has no tests Sep 6, 2023
@terryjreedy terryjreedy changed the title msvcrt module has no tests Add tests for msvcrt module Sep 6, 2023
@terryjreedy
Copy link
Member

Thanks for the submission. I reviewed the PR but would like someone else to look at the file op class.

terryjreedy added a commit that referenced this issue Sep 8, 2023
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 8, 2023
(cherry picked from commit bcb2ab5)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 8, 2023
(cherry picked from commit bcb2ab5)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
vstinner added a commit to vstinner/cpython that referenced this issue Sep 8, 2023
aisk added a commit to aisk/cpython that referenced this issue Sep 10, 2023
vstinner pushed a commit that referenced this issue Sep 22, 2023
* Add _testconsole.flush_console_input_buffer() function.
* test_kbhit(), test_getwch() and test_getwche() now call
  flush_console_input_buffer().
* Don't override sys.stdin anymore (not needed).
@vstinner
Copy link
Member

I close the issue, thanks @aisk.

csm10495 pushed a commit to csm10495/cpython that referenced this issue Sep 28, 2023
* Add _testconsole.flush_console_input_buffer() function.
* test_kbhit(), test_getwch() and test_getwche() now call
  flush_console_input_buffer().
* Don't override sys.stdin anymore (not needed).
@vstinner
Copy link
Member

test_msvcrt: test_getwche() failed with timeout (10 min) on GHA Windows x64: see issue gh-110147.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants