mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[3.13] gh-130804: Fix support of typing unicode chars in pyrepl (GH-130805) (GH-133462)
(cherry picked from commit 7c98b0674d
)
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
This commit is contained in:
parent
e4d68488bc
commit
76f52c434c
3 changed files with 17 additions and 3 deletions
|
@ -123,6 +123,13 @@ class EventQueueTestBase:
|
|||
self.assertEqual(eq.events[2].evt, "key")
|
||||
self.assertEqual(eq.events[2].data, "Z")
|
||||
|
||||
def test_push_unicode_character(self):
|
||||
eq = self.make_eventqueue()
|
||||
eq.keymap = {}
|
||||
eq.push("ч")
|
||||
self.assertEqual(eq.events[0].evt, "key")
|
||||
self.assertEqual(eq.events[0].data, "ч")
|
||||
|
||||
|
||||
@unittest.skipIf(support.MS_WINDOWS, "No Unix event queue on Windows")
|
||||
class TestUnixEventQueue(EventQueueTestBase, unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue