Skip to content

Commit 0434567

Browse files
committed
let the pyrepl test run on Windows again
1 parent e0f54a6 commit 0434567

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Lib/test/test_pyrepl/__init__.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import os
2+
import sys
23
from test.support import load_package_tests
34
import unittest
45

5-
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+
try:
8+
import termios
9+
except ImportError:
10+
raise unittest.SkipTest("termios required")
11+
else:
12+
del termios
1213

1314

1415
def load_tests(*args):

0 commit comments

Comments
 (0)