Skip to content

Commit daf594f

Browse files
committed
Just KISS
1 parent 3ca4ab9 commit daf594f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/tests/test_algos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def test_complex_sorting(self):
229229
# gh 12666 - check no segfault
230230
x17 = np.array([complex(i) for i in range(17)], dtype=object)
231231

232-
msg = ("no ordering relation is defined for complex numbers"
232+
msg = ("no ordering relation.*|unorderable types:.*"
233233
if _np_version_under1p14 else
234234
"'[<>]' not supported between instances of {0} and {0}".format(
235235
"'complex'")

pandas/tests/test_sorting.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,7 @@ def test_mixed_integer_from_list(self):
408408
def test_unsortable(self):
409409
# GH 13714
410410
arr = np.array([1, 2, datetime.now(), 0, 3], dtype=object)
411-
msg = ("can't compare ({0} to {1}|{1} to {0})".format(
412-
"int", r"datetime\.datetime") # noqa: E126
411+
msg = ("can't compare.*|unorderable types:.*"
413412
if _np_version_under1p14 else
414413
("'[<>]' not supported between instances of "
415414
"({0} and {1}|{1} and {0})").format(

0 commit comments

Comments
 (0)