[3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850)

(cherry picked from commit 0d07182821)

Co-authored-by: Dino Viehland <dinoviehland@gmail.com>
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
Miss Islington (bot) 2024-05-31 17:18:28 +02:00 committed by GitHub
parent 6e57bd01e0
commit d6faac6d1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1019 additions and 49 deletions

View file

@ -1,11 +1,15 @@
import tempfile
import unittest
import sys
from unittest.mock import patch
from _pyrepl.console import Event
from _pyrepl.unix_eventqueue import EventQueue
try:
from _pyrepl.console import Event
from _pyrepl.unix_eventqueue import EventQueue
except ImportError:
pass
@unittest.skipIf(sys.platform == "win32", "No Unix event queue on Windows")
@patch("_pyrepl.curses.tigetstr", lambda x: b"")
class TestUnixEventQueue(unittest.TestCase):
def setUp(self):