From ecdc63657e43258a15e6b4b5c332690af92677fd Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sat, 20 Jan 2018 09:00:31 +0000 Subject: [PATCH] deb_fix_test_failure_test_basic_indexing Gbp-Pq: Name deb_fix_test_failure_test_basic_indexing --- pandas/core/dtypes/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 2eebf370..f538eaff 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1155,7 +1155,10 @@ def _is_unorderable_exception(e): """ if PY36: - return "'>' not supported between instances of" in str(e) + # Temporary fix for Debian, reference: + # https://github.com/pandas-dev/pandas/pull/17724 + return any("'{}' not supported between instances of".format(op) in + str(e) for op in ('>', '<')) elif PY3: return 'unorderable' in str(e) -- 2.30.2