Skip to content

Commit c114143

Browse files
committed
reduce silly changes.
1 parent e7b152c commit c114143

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

xarray/core/combine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _combine_1d(
248248
join=join,
249249
)
250250
except ValueError as err:
251-
if "Encountered unexpected variable" in str(err):
251+
if "encountered unexpected variable" in str(err):
252252
raise ValueError(
253253
"These objects cannot be combined using only "
254254
"xarray.combine_nested, instead either use "

xarray/core/concat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def _dataset_concat(
374374
# check that global attributes are fixed across all datasets if necessary
375375
for ds in datasets[1:]:
376376
if compat == "identical" and not utils.dict_equiv(ds.attrs, result_attrs):
377-
raise ValueError("Dataset global attributes are not equal.")
377+
raise ValueError("Dataset global attributes not equal.")
378378

379379
# we've already verified everything is consistent; now, calculate
380380
# shared dimension sizes so we can expand the necessary variables

xarray/tests/test_concat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_concat_errors(self):
177177
with raises_regex(ValueError, "are not coordinates"):
178178
concat([data, data], "new_dim", coords=["not_found"])
179179

180-
with raises_regex(ValueError, "global attributes are not"):
180+
with raises_regex(ValueError, "global attributes not"):
181181
data0, data1 = deepcopy(split_data)
182182
data1.attrs["foo"] = "bar"
183183
concat([data0, data1], "dim1", compat="identical")

0 commit comments

Comments
 (0)