Skip to content

Commit 073ff5c

Browse files
committed
Add test
1 parent 437bf3d commit 073ff5c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Lib/test/test_pyrepl/test_unix_console.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ def test_cursor_back_write(self, _os_write):
257257
_os_write.assert_any_call(ANY, b"1")
258258
_os_write.assert_any_call(ANY, TERM_CAPABILITIES["cub"] + b":1")
259259
_os_write.assert_any_call(ANY, b"2")
260+
self.assertEqual(
261+
_os_write.mock_calls.count(
262+
call(ANY, TERM_CAPABILITIES["ich"] + b":1")
263+
),
264+
1,
265+
)
260266
con.restore()
261267

262268
def test_multiline_function_move_up_short_terminal(self, _os_write):

0 commit comments

Comments
 (0)