File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 8
8
from .structures import MarkDecorator
9
9
from .structures import MarkGenerator
10
10
from .structures import ParameterSet
11
+ from _pytest .config import hookimpl
11
12
from _pytest .config import UsageError
12
13
13
14
__all__ = ["Mark" , "MarkDecorator" , "MarkGenerator" , "get_empty_parameterset_mark" ]
@@ -74,6 +75,7 @@ def pytest_addoption(parser):
74
75
parser .addini (EMPTY_PARAMETERSET_OPTION , "default marker for empty parametersets" )
75
76
76
77
78
+ @hookimpl (tryfirst = True )
77
79
def pytest_cmdline_main (config ):
78
80
import _pytest .config
79
81
@@ -91,10 +93,6 @@ def pytest_cmdline_main(config):
91
93
return 0
92
94
93
95
94
- # Ignore type because of https://github.com/python/mypy/issues/2087.
95
- pytest_cmdline_main .tryfirst = True # type: ignore
96
-
97
-
98
96
def deselect_by_keyword (items , config ):
99
97
keywordexpr = config .option .keyword .lstrip ()
100
98
if not keywordexpr :
You can’t perform that action at this time.
0 commit comments