(self)
| 107 | self.f.close() |
| 108 | |
| 109 | def test_fcntl_bad_file(self): |
| 110 | with self.assertRaises(ValueError): |
| 111 | fcntl.fcntl(-1, fcntl.F_SETFL, os.O_NONBLOCK) |
| 112 | with self.assertRaises(ValueError): |
| 113 | fcntl.fcntl(BadFile(-1), fcntl.F_SETFL, os.O_NONBLOCK) |
| 114 | with self.assertRaises(TypeError): |
| 115 | fcntl.fcntl('spam', fcntl.F_SETFL, os.O_NONBLOCK) |
| 116 | with self.assertRaises(TypeError): |
| 117 | fcntl.fcntl(BadFile('spam'), fcntl.F_SETFL, os.O_NONBLOCK) |
| 118 | |
| 119 | @cpython_only |
| 120 | def test_fcntl_bad_file_overflow(self): |
nothing calls this directly
no test coverage detected