MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_tcflush_errors

Method test_tcflush_errors

Lib/test/test_termios.py:151–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

149
150 @unittest.skip("TODO: RUSTPYTHON segfault")
151 def test_tcflush_errors(self):
152 self.assertRaisesTermiosError(errno.EINVAL, termios.tcflush, self.fd, -1)
153 self.assertRaises(OverflowError, termios.tcflush, self.fd, 2**1000)
154 self.assertRaises(TypeError, termios.tcflush, self.fd, object())
155 self.assertRaisesTermiosError(errno.ENOTTY, termios.tcflush, self.bad_fd, termios.TCIFLUSH)
156 self.assertRaises(ValueError, termios.tcflush, -1, termios.TCIFLUSH)
157 self.assertRaises(OverflowError, termios.tcflush, 2**1000, termios.TCIFLUSH)
158 self.assertRaises(TypeError, termios.tcflush, object(), termios.TCIFLUSH)
159 self.assertRaises(TypeError, termios.tcflush, self.fd)
160
161 def test_tcflush_clear_input_or_output(self):
162 wfd = self.fd

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45

Tested by

no test coverage detected