Skip to content

Commit dac337c

Browse files
committed
Ignore warnings on error tests
1 parent 37f0147 commit dac337c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

xarray/tests/test_units.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,9 @@ def test_broadcast_dataset(dtype):
734734
"coords",
735735
),
736736
)
737+
@pytest.mark.filterwarnings(
738+
"ignore:.*the default value for coords will change:FutureWarning"
739+
)
737740
def test_combine_by_coords(variant, unit, error, dtype):
738741
original_unit = unit_registry.m
739742

@@ -811,6 +814,12 @@ def test_combine_by_coords(variant, unit, error, dtype):
811814
"coords",
812815
),
813816
)
817+
@pytest.mark.filterwarnings(
818+
"ignore:.*the default value for join will change:FutureWarning"
819+
)
820+
@pytest.mark.filterwarnings(
821+
"ignore:.*the default value for compat will change:FutureWarning"
822+
)
814823
def test_combine_nested(variant, unit, error, dtype):
815824
original_unit = unit_registry.m
816825

@@ -1051,6 +1060,12 @@ def test_concat_dataset(variant, unit, error, dtype):
10511060
"coords",
10521061
),
10531062
)
1063+
@pytest.mark.filterwarnings(
1064+
"ignore:.*the default value for join will change:FutureWarning"
1065+
)
1066+
@pytest.mark.filterwarnings(
1067+
"ignore:.*the default value for compat will change:FutureWarning"
1068+
)
10541069
def test_merge_dataarray(variant, unit, error, dtype):
10551070
original_unit = unit_registry.m
10561071

@@ -1155,6 +1170,12 @@ def test_merge_dataarray(variant, unit, error, dtype):
11551170
"coords",
11561171
),
11571172
)
1173+
@pytest.mark.filterwarnings(
1174+
"ignore:.*the default value for join will change:FutureWarning"
1175+
)
1176+
@pytest.mark.filterwarnings(
1177+
"ignore:.*the default value for compat will change:FutureWarning"
1178+
)
11581179
def test_merge_dataset(variant, unit, error, dtype):
11591180
original_unit = unit_registry.m
11601181

@@ -5573,6 +5594,12 @@ def test_content_manipulation(self, func, variant, dtype):
55735594
"coords",
55745595
),
55755596
)
5597+
@pytest.mark.filterwarnings(
5598+
"ignore:.*the default value for join will change:FutureWarning"
5599+
)
5600+
@pytest.mark.filterwarnings(
5601+
"ignore:.*the default value for compat will change:FutureWarning"
5602+
)
55765603
def test_merge(self, variant, unit, error, dtype):
55775604
left_variants = {
55785605
"data": (unit_registry.m, 1, 1),

0 commit comments

Comments
 (0)