Skip to content

Commit f463849

Browse files
committed
fix: test on windows
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent e3ae9a2 commit f463849

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_pyrepl/test_unix_console.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import signal
55
import subprocess
66
import sys
7-
import termios
87
import unittest
98
from functools import partial
109
from test.support import os_helper, force_not_colorized_test_class
@@ -314,8 +313,10 @@ class TestUnixConsoleEIOHandling(TestCase):
314313

315314
@patch('_pyrepl.unix_console.tcsetattr')
316315
@patch('_pyrepl.unix_console.tcgetattr')
316+
@unittest.skipUnless(sys.platform == "linux", "Only valid on Linux")
317317
def test_eio_error_handling_in_restore(self, mock_tcgetattr, mock_tcsetattr):
318318

319+
import termios
319320
mock_termios = Mock()
320321
mock_termios.iflag = 0
321322
mock_termios.oflag = 0

0 commit comments

Comments
 (0)