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.
1 parent e3ae9a2 commit f463849Copy full SHA for f463849
1 file changed
Lib/test/test_pyrepl/test_unix_console.py
@@ -4,7 +4,6 @@
4
import signal
5
import subprocess
6
import sys
7
-import termios
8
import unittest
9
from functools import partial
10
from test.support import os_helper, force_not_colorized_test_class
@@ -314,8 +313,10 @@ class TestUnixConsoleEIOHandling(TestCase):
314
313
315
@patch('_pyrepl.unix_console.tcsetattr')
316
@patch('_pyrepl.unix_console.tcgetattr')
+ @unittest.skipUnless(sys.platform == "linux", "Only valid on Linux")
317
def test_eio_error_handling_in_restore(self, mock_tcgetattr, mock_tcsetattr):
318
319
+ import termios
320
mock_termios = Mock()
321
mock_termios.iflag = 0
322
mock_termios.oflag = 0
0 commit comments