Skip to content

Commit 4b70767

Browse files
committed
Skip if termios unavailable
1 parent 8aee463 commit 4b70767

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Lib/test/test_pyrepl/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import os
22
from test.support import load_package_tests
3+
import unittest
4+
5+
6+
try:
7+
import termios
8+
except ImportError:
9+
raise unittest.SkipTest("termios required")
10+
else:
11+
del termios
312

413

514
def load_tests(*args):

0 commit comments

Comments
 (0)