Skip to content

Commit 85fc441

Browse files
max-sixtyshoyer
authored andcommitted
Add pytest markers to avoid warnings (#3023)
* add pytest markers to avoid warnings * add a pytest straggling (was on different line so not picked up by regex) * whatsnew * revert autoformat
1 parent 7e4bf86 commit 85fc441

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

doc/whats-new.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ Bug fixes
8383
- Replace incorrect usages of `message` in pytest assertions
8484
with `match` (:issue:`3011`)
8585
By `Maximilian Roos <https://github.com/max-sixty>`_.
86+
- Add explicit pytest markers, now required by pytest
87+
(:issue:`3032`).
88+
By `Maximilian Roos <https://github.com/max-sixty>`_.
8689

8790
.. _whats-new.0.12.1:
8891

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ ignore=
2323
F401
2424
exclude=
2525
doc
26+
markers =
27+
flaky: flaky tests
28+
network: tests requiring a network connection
29+
slow: slow tests
2630

2731
[isort]
2832
default_section=THIRDPARTY

xarray/tests/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4625,7 +4625,7 @@ def test_error_message_on_set_supplied():
46254625
def test_constructor_raises_with_invalid_coords(unaligned_coords):
46264626

46274627
with pytest.raises(ValueError,
4628-
message='not a subset of the DataArray dimensions'):
4628+
match='not a subset of the DataArray dimensions'):
46294629
xr.DataArray([1, 2, 3], dims=['x'], coords=unaligned_coords)
46304630

46314631

0 commit comments

Comments
 (0)