Blob Blame History Raw
From 507bf6860cc59d7a1320e39b4138418874f7ca15 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sat, 26 Sep 2020 23:10:31 -0400
Subject: [PATCH 4/4] Revert "un-xfail the pint assert_allclose and
 assert_duckarray_equal tests"

This reverts commit e045bd3e1dcbeedd31205d8ceb4186e28edc6cc2.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 xarray/tests/test_testing.py | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/xarray/tests/test_testing.py b/xarray/tests/test_testing.py
index 30ea6aaa..0f2ae8b3 100644
--- a/xarray/tests/test_testing.py
+++ b/xarray/tests/test_testing.py
@@ -70,7 +70,12 @@ def test_assert_allclose(obj1, obj2):
         pytest.param(
             quantity,
             id="pint",
-            marks=pytest.mark.skipif(not has_pint, reason="requires pint"),
+            marks=[
+                pytest.mark.skipif(not has_pint, reason="requires pint"),
+                pytest.mark.xfail(
+                    reason="inconsistencies in the return value of pint's implementation of eq"
+                ),
+            ],
         ),
     ),
 )
@@ -110,7 +115,12 @@ def test_assert_duckarray_equal_failing(duckarray, obj1, obj2):
         pytest.param(
             quantity,
             id="pint",
-            marks=pytest.mark.skipif(not has_pint, reason="requires pint"),
+            marks=[
+                pytest.mark.skipif(not has_pint, reason="requires pint"),
+                pytest.mark.xfail(
+                    reason="inconsistencies in the return value of pint's implementation of eq"
+                ),
+            ],
         ),
     ),
 )
-- 
2.26.2