We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e44fc commit 730f8bcCopy full SHA for 730f8bc
Lib/test/test_getpass.py
@@ -202,8 +202,7 @@ def test_handles_ctrl_c(self):
202
# Simulate typing 'a' then Ctrl+C (ASCII value 3)
203
getch.side_effect = [b'a', b'\x03']
204
# Verify that KeyboardInterrupt is raised
205
- with self.assertRaises(KeyboardInterrupt):
206
- getpass.win_getpass()
+ self.assertRaises(KeyboardInterrupt, getpass.win_getpass)
207
208
def test_flushes_stream_after_input(self):
209
with mock.patch('msvcrt.getch') as getch:
0 commit comments