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

Method test_tcdrain_errors

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

Source from the content-addressed store, hash-verified

136 @unittest.skip("TODO: RUSTPYTHON segfault")
137 @support.skip_android_selinux('tcdrain')
138 def test_tcdrain_errors(self):
139 self.assertRaisesTermiosError(errno.ENOTTY, termios.tcdrain, self.bad_fd)
140 self.assertRaises(ValueError, termios.tcdrain, -1)
141 self.assertRaises(OverflowError, termios.tcdrain, 2**1000)
142 self.assertRaises(TypeError, termios.tcdrain, object())
143 self.assertRaises(TypeError, termios.tcdrain)
144
145 def test_tcflush(self):
146 termios.tcflush(self.fd, termios.TCIFLUSH)

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45

Tested by

no test coverage detected