@@ -9,28 +9,43 @@ class PytestWarning(UserWarning):
9
9
"""
10
10
11
11
12
- class UnknownMarkWarning (PytestWarning ):
12
+ class PytestAssertRewriteWarning (PytestWarning ):
13
13
"""
14
14
Bases: :class:`PytestWarning`.
15
15
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.
18
17
"""
19
18
20
19
21
- class PytestDeprecationWarning (PytestWarning , DeprecationWarning ):
20
+ class PytestCacheWarning (PytestWarning ):
22
21
"""
23
- Bases: :class:`pytest. PytestWarning`, :class:`DeprecationWarning `.
22
+ Bases: :class:`PytestWarning`.
24
23
25
- Warning class for features that will be removed in a future version .
24
+ Warning emitted by the cache plugin in various situations .
26
25
"""
27
26
28
27
29
- class RemovedInPytest4Warning ( PytestDeprecationWarning ):
28
+ class PytestConfigWarning ( PytestWarning ):
30
29
"""
31
- Bases: :class:`pytest.PytestDeprecationWarning `.
30
+ Bases: :class:`PytestWarning `.
32
31
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.
34
49
"""
35
50
36
51
@@ -51,6 +66,33 @@ def simple(cls, apiname):
51
66
)
52
67
53
68
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
+
54
96
@attr .s
55
97
class UnformattedWarning (object ):
56
98
"""Used to hold warnings that need to format their message at runtime, as opposed to a direct message.
0 commit comments