Skip to content

Commit 4089d2a

Browse files
committed
Prefer bytearray.resize(0)
1 parent 4887168 commit 4089d2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_pyrepl/test_eventqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_push_with_keymap_in_keymap_and_escape(self, mock_keymap):
8787
eq.push(b"a")
8888
mock_keymap.compile_keymap.assert_called()
8989
self.assertTrue(eq.empty())
90-
del eq.buf[:]
90+
eq.buf.resize(0)
9191
eq.push(b"\033")
9292
self.assertEqual(eq.events[0].evt, "key")
9393
self.assertEqual(eq.events[0].data, "\033")

0 commit comments

Comments
 (0)