(self)
| 159 | f.cancel() |
| 160 | |
| 161 | def test_initial_state(self): |
| 162 | f = self._new_future(loop=self.loop) |
| 163 | self.assertFalse(f.cancelled()) |
| 164 | self.assertFalse(f.done()) |
| 165 | f.cancel() |
| 166 | self.assertTrue(f.cancelled()) |
| 167 | |
| 168 | def test_constructor_without_loop(self): |
| 169 | with self.assertRaisesRegex(RuntimeError, 'no current event loop'): |
nothing calls this directly
no test coverage detected