(self)
| 193 | @unittest.skip("TODO: RUSTPYTHON segfault") |
| 194 | @support.skip_android_selinux('tcflow') |
| 195 | def test_tcflow_errors(self): |
| 196 | self.assertRaisesTermiosError(errno.EINVAL, termios.tcflow, self.fd, -1) |
| 197 | self.assertRaises(OverflowError, termios.tcflow, self.fd, 2**1000) |
| 198 | self.assertRaises(TypeError, termios.tcflow, self.fd, object()) |
| 199 | self.assertRaisesTermiosError(errno.ENOTTY, termios.tcflow, self.bad_fd, termios.TCOON) |
| 200 | self.assertRaises(ValueError, termios.tcflow, -1, termios.TCOON) |
| 201 | self.assertRaises(OverflowError, termios.tcflow, 2**1000, termios.TCOON) |
| 202 | self.assertRaises(TypeError, termios.tcflow, object(), termios.TCOON) |
| 203 | self.assertRaises(TypeError, termios.tcflow, self.fd) |
| 204 | |
| 205 | @support.skip_android_selinux('tcflow') |
| 206 | @unittest.skipUnless(sys.platform in ('linux', 'android'), 'only works on Linux') |
nothing calls this directly
no test coverage detected