Skip to content

Commit 19a8670

Browse files
[3.14] pythongh-138801: re-enable pyrepl tests on Windows (pythonGH-138802) (pythonGH-138815)
pythongh-138801: re-enable `pyrepl` tests on Windows (pythonGH-138802) (cherry picked from commit 4f3cab9) Co-authored-by: Chris Eibl <[email protected]>
1 parent 80e59a8 commit 19a8670

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Lib/test/test_pyrepl/__init__.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import os
2-
from test.support import load_package_tests
3-
import unittest
2+
import sys
3+
from test.support import import_helper, load_package_tests
44

55

6-
try:
7-
import termios
8-
except ImportError:
9-
raise unittest.SkipTest("termios required")
10-
else:
11-
del termios
6+
if sys.platform != "win32":
7+
import_helper.import_module("termios")
128

139

1410
def load_tests(*args):

0 commit comments

Comments
 (0)