Skip to content

Commit a463449

Browse files
authored
csv: support non-ASCII Unicode dialect characters (#9367)
* scripts: make check_redundant_patches.py executable The redundant-test-patches pre-commit hook uses `language: script`, which requires the executable bit, and fails on every commit touching Lib/test. Assisted-by: Claude:claude-sonnet-5-5 * csv: support non-ASCII Unicode dialect characters Store delimiter, quotechar and escapechar as `char` instead of `u8`, and run the reader state machine and the writer over code points, so that a single non-ASCII character such as `€` is accepted like in CPython. The field size limit is now counted in characters rather than bytes. Fixes #8408 Assisted-by: Claude:claude-sonnet-5-5
1 parent b25ab5e commit a463449

4 files changed

Lines changed: 129 additions & 132 deletions

File tree

‎Lib/test/test_csv.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ def compare_dialect_123(self, expected, *writeargs, **kwwriteargs):
672672
fileobj.seek(0)
673673
self.assertEqual(fileobj.read(), expected)
674674

675-
@unittest.expectedFailure # TODO: RUSTPYTHON
676675
def test_dialect_apply(self):
677676
class testA(csv.excel):
678677
delimiter = "\t"

0 commit comments

Comments
 (0)