Skip to content

Commit c653eaa

Browse files
committed
make sure the original arrays are used as comparison
1 parent c787809 commit c653eaa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xarray/tests/test_quantities.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ def test_masked_array():
7575

7676

7777
def test_units_in_data_and_coords():
78+
data = create_data()
79+
_, _, xp = create_coord_arrays()
7880
data_array = create_data_array()
7981

80-
assert_equal_with_units(data_array.data, data_array)
81-
assert_equal_with_units(data_array.xp.data, data_array.xp)
82+
assert_equal_with_units(data, data_array)
83+
assert_equal_with_units(xp, data_array.xp)
8284

8385

8486
def test_arithmetics():

0 commit comments

Comments
 (0)