Package: python-xarray / 0.12.1-2~bpo10+1

NaT.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Upgrade of numpy means Nat == x is always False.
 Mark test XFAIL.
Author: Alastair McKinstry <mckinstry@debian.org>
Bug-Origin: https://bugs.debian.org/917762
Forwarded: no
Last-Updated: 2019-01-07

Index: python-xarray-0.12.0/xarray/tests/test_variable.py
===================================================================
--- python-xarray-0.12.0.orig/xarray/tests/test_variable.py
+++ python-xarray-0.12.0/xarray/tests/test_variable.py
@@ -188,7 +188,9 @@ class VariableSubclassobjects(object):
         self._assertIndexedLikeNDArray(
             x, np.timedelta64(td), 'timedelta64[ns]')
 
+    @pytest.mark.xfail
     def test_index_0d_not_a_time(self):
+        # NaT==x and x==NAT are now always False, so skip this.
         d = np.datetime64('NaT', 'ns')
         x = self.cls(['x'], [d])
         self._assertIndexedLikeNDArray(x, d)