deb_fix_test_failure_test_basic_indexing
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 24 Apr 2018 19:09:20 +0000 (20:09 +0100)
committerGraham Inggs <ginggs@debian.org>
Tue, 24 Apr 2018 19:09:20 +0000 (20:09 +0100)
Gbp-Pq: Name deb_fix_test_failure_test_basic_indexing

pandas/core/dtypes/common.py

index f60c0d5ffdca0be5504d7f5a4ac948dab9322f13..04572db223f590affa6024a6c5d2693ff502a6ad 100644 (file)
@@ -1192,7 +1192,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)