From 72ac8cbfe58998e7acf41356255790528f96f6bf Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Mon, 4 Mar 2019 19:11:40 +0000 Subject: [PATCH] fix MacPython / pandas-wheels ci failures --- pandas/tests/test_sorting.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/tests/test_sorting.py b/pandas/tests/test_sorting.py index 2a64947042979..7528566e8326e 100644 --- a/pandas/tests/test_sorting.py +++ b/pandas/tests/test_sorting.py @@ -409,8 +409,9 @@ def test_mixed_integer_from_list(self): def test_unsortable(self): # GH 13714 arr = np.array([1, 2, datetime.now(), 0, 3], dtype=object) - msg = (r"'(<|>)' not supported between instances of" - r" 'datetime\.datetime' and 'int'|" + msg = (r"'(<|>)' not supported between instances of ('" + r"datetime\.datetime' and 'int'|'int' and 'datetime\.datetime" + r"')|" r"unorderable types: int\(\) > datetime\.datetime\(\)") if compat.PY2: # RuntimeWarning: tp_compare didn't return -1 or -2 for exception