Skip to content

Commit 7f8fb7f

Browse files
Add comment
1 parent 68d978e commit 7f8fb7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_pyrepl/test_eventqueue.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def _push(keys):
161161

162162
self.assertIsInstance("ñ", str)
163163

164+
# we expect that no part of the multibyte string will remain in the
165+
# internal buffer after an encode/decode error
164166
_push(b"b")
165167
with self.assertRaises(AssertionError):
166168
_push("ñ")

0 commit comments

Comments
 (0)