(self)
| 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 |
nothing calls this directly
no test coverage detected