diff options
author | Dino Viehland <dinoviehland@gmail.com> | 2024-05-31 07:49:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 07:49:03 (GMT) |
commit | 0d07182821fad7b95a043d006f1ce13a2d22edcb (patch) | |
tree | dd51773d847f35d791bb9436352d39500845f288 /Lib/test/test_pyrepl/test_unix_eventqueue.py | |
parent | 13a5fdc72f701c053b96abea48cd8f2775e9418e (diff) | |
download | cpython-0d07182821fad7b95a043d006f1ce13a2d22edcb.zip cpython-0d07182821fad7b95a043d006f1ce13a2d22edcb.tar.gz cpython-0d07182821fad7b95a043d006f1ce13a2d22edcb.tar.bz2 |
gh-111201: Support pyrepl on Windows (#119559)
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_pyrepl/test_unix_eventqueue.py')
-rw-r--r-- | Lib/test/test_pyrepl/test_unix_eventqueue.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/test/test_pyrepl/test_unix_eventqueue.py b/Lib/test/test_pyrepl/test_unix_eventqueue.py index c06536b..301f799 100644 --- a/Lib/test/test_pyrepl/test_unix_eventqueue.py +++ b/Lib/test/test_pyrepl/test_unix_eventqueue.py @@ -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): |