(fd, data)
| 79 | |
| 80 | |
| 81 | def write_all(fd, data): |
| 82 | written = os.write(fd, data) |
| 83 | if written != len(data): |
| 84 | # gh-73256, gh-110673: It should never happen, but check just in case |
| 85 | raise Exception(f"short write: os.write({fd}, {len(data)} bytes) " |
| 86 | f"wrote {written} bytes") |
| 87 | |
| 88 | |
| 89 | # Marginal testing of pty suite. Cannot do extensive 'do or fail' testing |
no test coverage detected
searching dependent graphs…