From 19a8670d7a21ec9d3b6d59686a85d8cd62bfec46 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 15 Sep 2025 16:42:36 +0200 Subject: [PATCH] [3.14] gh-138801: re-enable `pyrepl` tests on Windows (GH-138802) (GH-138815) gh-138801: re-enable `pyrepl` tests on Windows (GH-138802) (cherry picked from commit 4f3cab96c166031a184a1abf288a4d65df49fe52) Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> --- Lib/test/test_pyrepl/__init__.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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): -- 2.47.3