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 88from .structures import MarkDecorator
99from .structures import MarkGenerator
1010from .structures import ParameterSet
11+ from _pytest .config import hookimpl
1112from _pytest .config import UsageError
1213
1314__all__ = ["Mark" , "MarkDecorator" , "MarkGenerator" , "get_empty_parameterset_mark" ]
@@ -74,6 +75,7 @@ def pytest_addoption(parser):
7475 parser .addini (EMPTY_PARAMETERSET_OPTION , "default marker for empty parametersets" )
7576
7677
78+ @hookimpl (tryfirst = True )
7779def pytest_cmdline_main (config ):
7880 import _pytest .config
7981
@@ -91,10 +93,6 @@ def pytest_cmdline_main(config):
9193 return 0
9294
9395
94- # Ignore type because of https://github.com/python/mypy/issues/2087.
95- pytest_cmdline_main .tryfirst = True # type: ignore
96-
97-
9896def deselect_by_keyword (items , config ):
9997 keywordexpr = config .option .keyword .lstrip ()
10098 if not keywordexpr :
You can’t perform that action at this time.
0 commit comments