From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Fri, 12 Sep 2025 07:47:43 +0000 (+0200) Subject: gh-138801: re-enable `pyrepl` tests on Windows (#138802) X-Git-Tag: v3.15.0a1~402 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f3cab96c166031a184a1abf288a4d65df49fe52;p=thirdparty%2FPython%2Fcpython.git gh-138801: re-enable `pyrepl` tests on Windows (#138802) --- diff --git a/Lib/test/test_pyrepl/__init__.py b/Lib/test/test_pyrepl/__init__.py index 8ef472eb0cff..2f37bff6df8b 100644 --- a/Lib/test/test_pyrepl/__init__.py +++ b/Lib/test/test_pyrepl/__init__.py @@ -1,14 +1,10 @@ import os -from test.support import load_package_tests -import unittest +import sys +from test.support import import_helper, load_package_tests -try: - import termios -except ImportError: - raise unittest.SkipTest("termios required") -else: - del termios +if sys.platform != "win32": + import_helper.import_module("termios") def load_tests(*args):