(msg_format, row, *args)
| 606 | def test_row_number_offset_in_errors(self): |
| 607 | # Row numbers are only correctly counted in serial reads |
| 608 | def format_msg(msg_format, row, *args): |
| 609 | if self.use_threads: |
| 610 | row_info = "" |
| 611 | else: |
| 612 | row_info = f"Row #{row}: " |
| 613 | return msg_format.format(row_info, *args) |
| 614 | |
| 615 | csv, _ = make_random_csv(4, 100, write_names=True) |
| 616 |