File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def serialized(self) -> str:
48
48
return str (self .mypy_results_path )
49
49
50
50
51
+ item_marker = "mypy"
51
52
mypy_argv : List [str ] = []
52
53
nodeid_name = "mypy"
53
54
stash_key = {
@@ -153,7 +154,7 @@ def pytest_configure(config: pytest.Config) -> None:
153
154
154
155
config .addinivalue_line (
155
156
"markers" ,
156
- f"{ MypyItem . MARKER } : mark tests to be checked by mypy." ,
157
+ f"{ item_marker } : mark tests to be checked by mypy." ,
157
158
)
158
159
if config .getoption ("--mypy-ignore-missing-imports" ):
159
160
mypy_argv .append ("--ignore-missing-imports" )
@@ -206,11 +207,9 @@ def collect(self) -> Iterator[MypyItem]:
206
207
class MypyItem (pytest .Item ):
207
208
"""A Mypy-related test Item."""
208
209
209
- MARKER = "mypy"
210
-
211
210
def __init__ (self , * args : Any , ** kwargs : Any ):
212
211
super ().__init__ (* args , ** kwargs )
213
- self .add_marker (self . MARKER )
212
+ self .add_marker (item_marker )
214
213
215
214
def repr_failure (
216
215
self ,
You can’t perform that action at this time.
0 commit comments