(self, err, callable, *args)
| 22 | self.bad_fd = tmp.fileno() |
| 23 | |
| 24 | def assertRaisesTermiosError(self, err, callable, *args): |
| 25 | # Some versions of Android return EACCES when calling termios functions |
| 26 | # on a regular file. |
| 27 | errs = [err] |
| 28 | if sys.platform == 'android' and err == errno.ENOTTY: |
| 29 | errs.append(errno.EACCES) |
| 30 | |
| 31 | with self.assertRaises(termios.error) as cm: |
| 32 | callable(*args) |
| 33 | self.assertIn(cm.exception.args[0], errs) |
| 34 | |
| 35 | @unittest.expectedFailure # TODO: RUSTPYTHON; TypeError: Expected type 'int' but 'FileIO' found. |
| 36 | def test_tcgetattr(self): |
no test coverage detected