Skip to content

Commit c35e24e

Browse files
committed
gh-156186: Patch _winapi.SetConsoleMode in the two-paste test
1 parent 1b36ce5 commit c35e24e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_pyrepl/test_windows_console.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def test_bracketed_paste_two_pastes_in_one_read(self):
717717
self.console._read_input_bulk = MagicMock(side_effect=bulk_reads)
718718

719719
reader = default_prepare_reader(self.console, paste_mode=False)
720-
with patch.object(wc, "SetConsoleMode", return_value=1):
720+
with patch.object(wc._winapi, "SetConsoleMode"):
721721
self.assertEqual(reader.readline(), "a")
722722
self.assertEqual(reader.readline(), "b")
723723
self.assertEqual(self.console._read_input_bulk.call_count, 1)

0 commit comments

Comments
 (0)