We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pyrepl
1 parent 4afa985 commit 4f3cab9Copy full SHA for 4f3cab9
1 file changed
Lib/test/test_pyrepl/__init__.py
@@ -1,14 +1,10 @@
1
import os
2
-from test.support import load_package_tests
3
-import unittest
+import sys
+from test.support import import_helper, load_package_tests
4
5
6
-try:
7
- import termios
8
-except ImportError:
9
- raise unittest.SkipTest("termios required")
10
-else:
11
- del termios
+if sys.platform != "win32":
+ import_helper.import_module("termios")
12
13
14
def load_tests(*args):
0 commit comments