Skip to content

Commit dda99d8

Browse files
author
y-p
committed
non-ascii bytes in "str" type are ambiguous.
Since the codepoints resulting from a decode depend on the encoding, this test can only be an example of error handling, but the current code doesn't treat it as as such. so IMHO this is wrong, it breaks another fix which I believe does the right thing in this respect, for another issue. and so It is removed by this patch. Unicode<-> bytes conversion and coercing should be done at I/O entry points, not internal code.
1 parent 9c0f46d commit dda99d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def test_repr_corner(self):
246246

247247
def test_frame_info_encoding(self):
248248
index = ['\'Til There Was You (1997)',
249-
'\xc1 k\xf6ldum klaka (Cold Fever) (1994)']
249+
'ldum klaka (Cold Fever) (1994)']
250250
fmt.set_printoptions(max_rows=1)
251251
df = DataFrame(columns=['a', 'b', 'c'], index=index)
252252
repr(df)

0 commit comments

Comments
 (0)