(self)
| 770 | c.close() |
| 771 | |
| 772 | def test_func_15(self): |
| 773 | # See http://bugs.python.org/issue25887 for details |
| 774 | |
| 775 | async def spammer(): |
| 776 | return 'spam' |
| 777 | async def reader(coro): |
| 778 | return await coro |
| 779 | |
| 780 | spammer_coro = spammer() |
| 781 | |
| 782 | with self.assertRaisesRegex(StopIteration, 'spam'): |
| 783 | reader(spammer_coro).send(None) |
| 784 | |
| 785 | with self.assertRaisesRegex(RuntimeError, |
| 786 | 'cannot reuse already awaited coroutine'): |
| 787 | reader(spammer_coro).send(None) |
| 788 | |
| 789 | def test_func_16(self): |
| 790 | # See http://bugs.python.org/issue25887 for details |
nothing calls this directly
no test coverage detected