deb_fix_test_failure_test_basic_indexing
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sat, 20 Jan 2018 09:00:31 +0000 (09:00 +0000)
committerMo Zhou <cdluminate@gmail.com>
Sat, 20 Jan 2018 09:00:31 +0000 (09:00 +0000)
Gbp-Pq: Name deb_fix_test_failure_test_basic_indexing

pandas/core/dtypes/common.py

index 2eebf3704253ee53ffc4d707712249fb292653b9..f538eaffef2346807523b8f7bfd9f1ff2af6a834 100644 (file)
@@ -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)