]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108996: fix and enable test_msvcrt (#109226)
authorAN Long <aisk@users.noreply.github.com>
Fri, 22 Sep 2023 00:19:48 +0000 (08:19 +0800)
committerGitHub <noreply@github.com>
Fri, 22 Sep 2023 00:19:48 +0000 (02:19 +0200)
commit4230d7ce93cc25e9c5fb564a0b37e93f19ca0e4e
tree2265d9ec87f128bdacef37a34edf4ec2d12ef56f
parent3f5c5649cfefe5b03cebe53b3ae766e2739eee23
gh-108996: fix and enable test_msvcrt (#109226)

* 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).
Lib/test/test_msvcrt.py
Misc/NEWS.d/next/Tests/2023-09-10-23-05-50.gh-issue-108996.tJBru6.rst [new file with mode: 0644]
PC/_testconsole.c
PC/clinic/_testconsole.c.h