File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 12
12
13
13
from _pytest .warning_types import PytestDeprecationWarning
14
14
from _pytest .warning_types import PytestRemovedIn8Warning
15
+ from _pytest .warning_types import PytestRemovedIn9Warning
15
16
from _pytest .warning_types import UnformattedWarning
16
17
17
18
# set of plugins which have been integrated into the core; we use this list to ignore
122
123
"#configuring-hook-specs-impls-using-markers" ,
123
124
)
124
125
125
- MARKED_FIXTURE = PytestRemovedIn8Warning (
126
+ MARKED_FIXTURE = PytestRemovedIn9Warning (
126
127
"Marks applied to fixtures have no effect\n "
127
128
"See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function"
128
129
)
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ def test_importing_instance_is_deprecated(pytester: Pytester) -> None:
290
290
def test_fixture_disallow_on_marked_functions ():
291
291
"""Test that applying @pytest.fixture to a marked function warns (#3364)."""
292
292
with pytest .warns (
293
- pytest .PytestRemovedIn8Warning ,
293
+ pytest .PytestRemovedIn9Warning ,
294
294
match = r"Marks applied to fixtures have no effect" ,
295
295
) as record :
296
296
@@ -309,7 +309,7 @@ def foo():
309
309
def test_fixture_disallow_marks_on_fixtures ():
310
310
"""Test that applying a mark to a fixture warns (#3364)."""
311
311
with pytest .warns (
312
- pytest .PytestRemovedIn8Warning ,
312
+ pytest .PytestRemovedIn9Warning ,
313
313
match = r"Marks applied to fixtures have no effect" ,
314
314
) as record :
315
315
@@ -325,7 +325,7 @@ def foo():
325
325
def test_fixture_disallowed_between_marks ():
326
326
"""Test that applying a mark to a fixture warns (#3364)."""
327
327
with pytest .warns (
328
- pytest .PytestRemovedIn8Warning ,
328
+ pytest .PytestRemovedIn9Warning ,
329
329
match = r"Marks applied to fixtures have no effect" ,
330
330
) as record :
331
331
You can’t perform that action at this time.
0 commit comments