[3.13] gh-130804: Fix support of typing unicode chars in pyrepl (GH-1… · ambv/cpython@e980f8b · GitHub
Skip to content

Commit e980f8b

Browse files
sergey-miryanovambv
authored andcommitted
[3.13] pythongh-130804: Fix support of typing unicode chars in pyrepl (pythonGH-130805)
(cherry picked from commit 7c98b06) Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
1 parent a2bf7a0 commit e980f8b

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

Lib/_pyrepl/base_eventqueue.py

Lines changed: 9 additions & 3 deletions

Lib/test/test_pyrepl/test_eventqueue.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ def test_push_unrecognized_escape_sequence(self):
123123
self.assertEqual(eq.events[2].evt, "key")
124124
self.assertEqual(eq.events[2].data, "Z")
125125

126+
def test_push_unicode_character(self):
127+
eq = self.make_eventqueue()
128+
eq.keymap = {}
129+
eq.push("ч")
130+
self.assertEqual(eq.events[0].evt, "key")
131+
self.assertEqual(eq.events[0].data, "ч")
132+
126133

127134
@unittest.skipIf(support.MS_WINDOWS, "No Unix event queue on Windows")
128135
class TestUnixEventQueue(EventQueueTestBase, unittest.TestCase):
Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)