Skip to content

Commit 4f3cab9

Browse files
authored
gh-138801: re-enable pyrepl tests on Windows (#138802)
1 parent 4afa985 commit 4f3cab9

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)