Skip to content

Commit 329002c

Browse files
committed
Only need to pprint with the display encoding
1 parent 99ac0e8 commit 329002c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/util/testing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
is_interval_dtype,
3232
is_sequence,
3333
is_list_like)
34-
from pandas.io.formats.printing import pprint_thing
34+
from pandas.io.formats.printing import pprint_thing_encoded
3535
from pandas.core.algorithms import take_1d
3636
import pandas.core.common as com
3737

@@ -989,11 +989,11 @@ def assert_categorical_equal(left, right, check_dtype=True,
989989

990990
def raise_assert_detail(obj, message, left, right, diff=None):
991991
if isinstance(left, np.ndarray):
992-
left = repr(pprint_thing(left))
992+
left = pprint_thing_encoded(left, encoding=pd.options.display.encoding)
993993
elif is_categorical_dtype(left):
994994
left = repr(left)
995995
if isinstance(right, np.ndarray):
996-
right = repr(pprint_thing(right))
996+
right = pprint_thing_encoded(right, encoding=pd.options.display.encoding)
997997
elif is_categorical_dtype(right):
998998
right = repr(right)
999999

0 commit comments

Comments
 (0)