mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
14 lines
323 B
Python
14 lines
323 B
Python
def _test_termios():
|
|
# These tests are in a function so we can only run them if termios is available
|
|
assert termios.error.__module__ == "termios"
|
|
assert termios.error.__name__ == "error"
|
|
|
|
|
|
try:
|
|
import termios
|
|
except ImportError:
|
|
# Not all platforms have termios, noop
|
|
pass
|
|
else:
|
|
_test_termios()
|