File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -275,17 +275,11 @@ def test_chunk_splits_multibyte_char(all_parsers):
275
275
@skip_pyarrow
276
276
def test_readcsv_memmap_utf8 (all_parsers ):
277
277
lines = []
278
- line_length = 128
279
- start_char = " "
280
- end_char = "\U00010080 "
281
- # This for loop creates a list of 128-char strings
282
- # consisting of consecutive Unicode chars
283
- for lnum in range (ord (start_char ), ord (end_char ), line_length ):
278
+ for lnum in range (0x20 , 0x10080 , 0x80 ):
284
279
line = "" .join ([chr (c ) for c in range (lnum , lnum + 0x80 )]) + "\n "
285
280
try :
286
281
line .encode ("utf-8" )
287
282
except UnicodeEncodeError :
288
- # Some 16-bit words are not valid Unicode chars and must be skipped
289
283
continue
290
284
lines .append (line )
291
285
parser = all_parsers
You can’t perform that action at this time.
0 commit comments