()
| 518 | bytes_read = bytearray() |
| 519 | |
| 520 | def reader(): |
| 521 | try: |
| 522 | data = r.recv(1024) |
| 523 | except BlockingIOError: |
| 524 | # Spurious readiness notifications are possible |
| 525 | # at least on Linux -- see man select. |
| 526 | return |
| 527 | if data: |
| 528 | bytes_read.extend(data) |
| 529 | else: |
| 530 | self.assertTrue(self.loop.remove_reader(r.fileno())) |
| 531 | r.close() |
| 532 | |
| 533 | self.loop.add_reader(r.fileno(), reader) |
| 534 | self.loop.call_soon(w.send, b'abc') |
nothing calls this directly
no test coverage detected