@@ -9,28 +9,43 @@ class PytestWarning(UserWarning):
99 """
1010
1111
12- class UnknownMarkWarning (PytestWarning ):
12+ class PytestAssertRewriteWarning (PytestWarning ):
1313 """
1414 Bases: :class:`PytestWarning`.
1515
16- Warning emitted on use of unknown markers.
17- See https://docs.pytest.org/en/latest/mark.html for details.
16+ Warning emitted by the pytest assert rewrite module.
1817 """
1918
2019
21- class PytestDeprecationWarning (PytestWarning , DeprecationWarning ):
20+ class PytestCacheWarning (PytestWarning ):
2221 """
23- Bases: :class:`pytest. PytestWarning`, :class:`DeprecationWarning `.
22+ Bases: :class:`PytestWarning`.
2423
25- Warning class for features that will be removed in a future version .
24+ Warning emitted by the cache plugin in various situations .
2625 """
2726
2827
29- class RemovedInPytest4Warning ( PytestDeprecationWarning ):
28+ class PytestConfigWarning ( PytestWarning ):
3029 """
31- Bases: :class:`pytest.PytestDeprecationWarning `.
30+ Bases: :class:`PytestWarning `.
3231
33- Warning class for features scheduled to be removed in pytest 4.0.
32+ Warning emitted for configuration issues.
33+ """
34+
35+
36+ class PytestCollectionWarning (PytestWarning ):
37+ """
38+ Bases: :class:`PytestWarning`.
39+
40+ Warning emitted when pytest is not able to collect a file or symbol in a module.
41+ """
42+
43+
44+ class PytestDeprecationWarning (PytestWarning , DeprecationWarning ):
45+ """
46+ Bases: :class:`pytest.PytestWarning`, :class:`DeprecationWarning`.
47+
48+ Warning class for features that will be removed in a future version.
3449 """
3550
3651
@@ -51,6 +66,33 @@ def simple(cls, apiname):
5166 )
5267
5368
69+ class PytestUnhandledCoroutineWarning (PytestWarning ):
70+ """
71+ Bases: :class:`PytestWarning`.
72+
73+ Warning emitted when pytest encounters a test function which is a coroutine,
74+ but it was not handled by any async-aware plugin. Coroutine test functions
75+ are not natively supported.
76+ """
77+
78+
79+ class PytestUnknownMarkWarning (PytestWarning ):
80+ """
81+ Bases: :class:`PytestWarning`.
82+
83+ Warning emitted on use of unknown markers.
84+ See https://docs.pytest.org/en/latest/mark.html for details.
85+ """
86+
87+
88+ class RemovedInPytest4Warning (PytestDeprecationWarning ):
89+ """
90+ Bases: :class:`pytest.PytestDeprecationWarning`.
91+
92+ Warning class for features scheduled to be removed in pytest 4.0.
93+ """
94+
95+
5496@attr .s
5597class UnformattedWarning (object ):
5698 """Used to hold warnings that need to format their message at runtime, as opposed to a direct message.
0 commit comments