Skip to content

Commit 114f88e

Browse files
committed
Added versionadded tag and removed unused code
1 parent b1d8fb8 commit 114f88e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/_libs/testing.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ cpdef assert_almost_equal(a, b,
9292
index : str, default None
9393
Specify shared index of objects being compared, internally used to
9494
show appropriate assertion message
95+
96+
.. versionadded:: 1.1.0
97+
9598
"""
9699
cdef:
97100
int decimal

pandas/_testing.py

-3
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,6 @@ def raise_assert_detail(obj, message, left, right, diff=None, index=None):
908908
elif is_categorical_dtype(right):
909909
right = repr(right)
910910

911-
if isinstance(index, np.ndarray):
912-
index = pprint_thing(index)
913-
914911
msg += f"""
915912
[left]: {left}
916913
[right]: {right}"""

0 commit comments

Comments
 (0)