MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_kbhit

Method test_kbhit

Lib/test/test_msvcrt.py:73–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 creationflags=subprocess.CREATE_NEW_CONSOLE)
72
73 def test_kbhit(self):
74 code = dedent('''
75 import msvcrt
76 assert msvcrt.kbhit() == 0
77 ''')
78 self.run_in_separated_process(code)
79
80 def test_getch(self):
81 msvcrt.ungetch(b'c')

Callers

nothing calls this directly

Calls 2

dedentFunction · 0.90

Tested by

no test coverage detected