()
| 251 | |
| 252 | |
| 253 | def test_python_file_iterable(): |
| 254 | data = b'''line1 |
| 255 | line2 |
| 256 | line3 |
| 257 | ''' |
| 258 | |
| 259 | buf = BytesIO(data) |
| 260 | buf2 = BytesIO(data) |
| 261 | |
| 262 | with pa.PythonFile(buf, mode='r') as f: |
| 263 | for read, expected in zip(f, buf2): |
| 264 | assert read == expected |
| 265 | |
| 266 | |
| 267 | def test_python_file_large_seeks(): |
nothing calls this directly
no test coverage detected