File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ jobs:
508
508
run : |
509
509
. venv/bin/activate
510
510
pip install -e .
511
- pytest --primer_stdlib -n auto
511
+ pytest --primer-stdlib -n auto
512
512
513
513
pytest-primer-external :
514
514
name : Run primer tests on external libs Python ${{ matrix.python-version }} (Linux)
@@ -542,4 +542,4 @@ jobs:
542
542
run : |
543
543
. venv/bin/activate
544
544
pip install -e .
545
- pytest --primer_external -n auto
545
+ pytest --primer-external -n auto
Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ def reporter():
60
60
61
61
def pytest_addoption (parser ) -> None :
62
62
parser .addoption (
63
- "--primer_stdlib " ,
63
+ "--primer-stdlib " ,
64
64
action = "store_true" ,
65
65
default = False ,
66
66
help = "Run primer stdlib tests" ,
67
67
)
68
68
parser .addoption (
69
- "--primer_external " ,
69
+ "--primer-external " ,
70
70
action = "store_true" ,
71
71
default = False ,
72
72
help = "Run primer external tests" ,
@@ -76,18 +76,18 @@ def pytest_addoption(parser) -> None:
76
76
def pytest_collection_modifyitems (config , items ) -> None :
77
77
"""Convert command line options to markers"""
78
78
# Add skip_primer_stdlib mark
79
- if not config .getoption ("--primer_external " ):
79
+ if not config .getoption ("--primer-external " ):
80
80
skip_primer_external = pytest .mark .skip (
81
- reason = "need --primer_external option to run"
81
+ reason = "need --primer-external option to run"
82
82
)
83
83
for item in items :
84
84
if "primer_external" in item .keywords :
85
85
item .add_marker (skip_primer_external )
86
86
87
87
# Add skip_primer_stdlib mark
88
- if not config .getoption ("--primer_stdlib " ):
88
+ if not config .getoption ("--primer-stdlib " ):
89
89
skip_primer_stdlib = pytest .mark .skip (
90
- reason = "need --primer_stdlib option to run"
90
+ reason = "need --primer-stdlib option to run"
91
91
)
92
92
for item in items :
93
93
if "primer_stdlib" in item .keywords :
You can’t perform that action at this time.
0 commit comments