(self)
| 1079 | self.assertEqual(excsnap.type.__name__, 'ChannelClosedError') |
| 1080 | |
| 1081 | def test_close_multiple_times(self): |
| 1082 | cid = _channels.create(REPLACE) |
| 1083 | _channels.send(cid, b'spam', blocking=False) |
| 1084 | recv_nowait(cid) |
| 1085 | _channels.close(cid) |
| 1086 | |
| 1087 | with self.assertRaises(_channels.ChannelClosedError): |
| 1088 | _channels.close(cid) |
| 1089 | |
| 1090 | def test_close_empty(self): |
| 1091 | tests = [ |
nothing calls this directly
no test coverage detected