@@ -1915,7 +1915,6 @@ def test_unstack(self, dtype):
1915
1915
assert_units_equal (expected , actual )
1916
1916
xr .testing .assert_identical (expected , actual )
1917
1917
1918
- @pytest .mark .xfail (reason = "ignores units" )
1919
1918
@pytest .mark .parametrize (
1920
1919
"unit,error" ,
1921
1920
(
@@ -1930,12 +1929,12 @@ def test_unstack(self, dtype):
1930
1929
)
1931
1930
def test_concat (self , unit , error , dtype ):
1932
1931
array1 = (
1933
- np .linspace (0 , 5 , 3 * 10 ).reshape (3 , 10 ).astype (dtype ) * unit_registry .m
1932
+ np .linspace (0 , 5 , 9 * 10 ).reshape (3 , 6 , 5 ).astype (dtype ) * unit_registry .m
1934
1933
)
1935
- array2 = np .linspace (5 , 10 , 10 * 2 ).reshape (10 , 2 ).astype (dtype ) * unit
1934
+ array2 = np .linspace (5 , 10 , 10 * 3 ).reshape (3 , 2 , 5 ).astype (dtype ) * unit
1936
1935
1937
- variable = xr .Variable (("x" , "y" ), array1 )
1938
- other = xr .Variable (("y" , "z" ), array2 )
1936
+ variable = xr .Variable (("x" , "y" , "z" ), array1 )
1937
+ other = xr .Variable (("x" , " y" , "z" ), array2 )
1939
1938
1940
1939
if error is not None :
1941
1940
with pytest .raises (error ):
0 commit comments