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

Method test_tcflow_errors

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

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45

Tested by

no test coverage detected