File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -420,3 +420,5 @@ The following warning types ares used by pytest and are part of the public API:
420
420
.. autoclass :: pytest.RemovedInPytest4Warning
421
421
422
422
.. autoclass :: pytest.PytestExperimentalApiWarning
423
+
424
+ .. autoclass :: pytest.PytestUnknownMarkWarning
Original file line number Diff line number Diff line change 12
12
from ..compat import NOTSET
13
13
from _pytest .deprecated import PYTEST_PARAM_UNKNOWN_KWARGS
14
14
from _pytest .outcomes import fail
15
- from _pytest .warning_types import UnknownMarkWarning
15
+ from _pytest .warning_types import PytestUnknownMarkWarning
16
16
17
17
EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark"
18
18
@@ -318,7 +318,7 @@ def __getattr__(self, name):
318
318
"Unknown pytest.mark.%s - is this a typo? You can register "
319
319
"custom marks to avoid this warning - for details, see "
320
320
"https://docs.pytest.org/en/latest/mark.html" % name ,
321
- UnknownMarkWarning ,
321
+ PytestUnknownMarkWarning ,
322
322
)
323
323
324
324
return MarkDecorator (Mark (name , (), {}))
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class PytestWarning(UserWarning):
9
9
"""
10
10
11
11
12
- class UnknownMarkWarning (PytestWarning ):
12
+ class PytestUnknownMarkWarning (PytestWarning ):
13
13
"""
14
14
Bases: :class:`PytestWarning`.
15
15
Original file line number Diff line number Diff line change 37
37
from _pytest .recwarn import warns
38
38
from _pytest .warning_types import PytestDeprecationWarning
39
39
from _pytest .warning_types import PytestExperimentalApiWarning
40
+ from _pytest .warning_types import PytestUnknownMarkWarning
40
41
from _pytest .warning_types import PytestWarning
41
42
from _pytest .warning_types import RemovedInPytest4Warning
42
43
72
73
"raises" ,
73
74
"register_assert_rewrite" ,
74
75
"RemovedInPytest4Warning" ,
76
+ "PytestUnknownMarkWarning" ,
75
77
"Session" ,
76
78
"set_trace" ,
77
79
"skip" ,
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ filterwarnings =
169
169
# Do not cause SyntaxError for invalid escape sequences in py37.
170
170
default:invalid escape sequence:DeprecationWarning
171
171
# ignore use of unregistered marks, because we use many to test the implementation
172
- ignore::_pytest.warning_types.UnknownMarkWarning
172
+ ignore::_pytest.warning_types.PytestUnknownMarkWarning
173
173
pytester_example_dir = testing/example_scripts
174
174
markers =
175
175
issue
You can’t perform that action at this time.
0 commit comments