Skip to content

Commit e60bfe3

Browse files
committed
Fix test incorrectly registering ich1
1 parent 42596b8 commit e60bfe3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎Lib/test/test_pyrepl/test_unix_console.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,9 @@ 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.assertIsNotNone(con.ich1)
260261
self.assertEqual(
261-
_os_write.mock_calls.count(
262-
call(ANY, TERM_CAPABILITIES["ich"] + b":1")
263-
),
262+
_os_write.mock_calls.count(call(ANY, con.ich1)),
264263
1,
265264
)
266265
con.restore()

0 commit comments

Comments
 (0)