https://github.com/python/cpython/commit/4f3cab96c166031a184a1abf288a4d65df49fe52
commit: 4f3cab96c166031a184a1abf288a4d65df49fe52
branch: main
author: Chris Eibl <[email protected]>
committer: sobolevn <[email protected]>
date: 2025-09-12T10:47:43+03:00
summary:

gh-138801: re-enable `pyrepl` tests on Windows (#138802)

files:
M Lib/test/test_pyrepl/__init__.py

diff --git a/Lib/test/test_pyrepl/__init__.py b/Lib/test/test_pyrepl/__init__.py
index 8ef472eb0cffaf..2f37bff6df8b4a 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):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to