aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pyrepl/test_eventqueue.py
diff options
context:
space:
mode:
authorSergey Miryanov <sergey.miryanov@gmail.com>2025-03-11 03:13:50 +0500
committerGitHub <noreply@github.com>2025-03-10 22:13:50 +0000
commit7c98b0674daa3e4eb3e8f35afb61a0dba61d1780 (patch)
tree7624142fff75eb9a72bbb00f7884f87483cd303d /Lib/test/test_pyrepl/test_eventqueue.py
parent6ab5c4aa05bf35832a3ccd1e71b28b8475fa30f4 (diff)
downloadcpython-7c98b0674daa3e4eb3e8f35afb61a0dba61d1780.tar.gz
cpython-7c98b0674daa3e4eb3e8f35afb61a0dba61d1780.zip
gh-130804: Fix support of typing unicode chars in pyrepl (#130805)
Diffstat (limited to 'Lib/test/test_pyrepl/test_eventqueue.py')
-rw-r--r--Lib/test/test_pyrepl/test_eventqueue.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_pyrepl/test_eventqueue.py b/Lib/test/test_pyrepl/test_eventqueue.py
index a1bac38fbd4..b25bdb956b0 100644
--- a/Lib/test/test_pyrepl/test_eventqueue.py
+++ b/Lib/test/test_pyrepl/test_eventqueue.py
@@ -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):