From: Debian Science Team Date: Sat, 20 Jan 2018 09:00:31 +0000 (+0000) Subject: deb_fix_test_failure_test_basic_indexing X-Git-Tag: archive/raspbian/0.20.3-11+rpi1~2^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ecdc63657e43258a15e6b4b5c332690af92677fd;p=pandas.git deb_fix_test_failure_test_basic_indexing Gbp-Pq: Name deb_fix_test_failure_test_basic_indexing --- 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)