File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,17 @@ def pytest_addoption(parser):
53
53
"--runcomplex" ,
54
54
action = "store_true" ,
55
55
default = False ,
56
- help = "run broken complex tests" ,
56
+ help = "run broken complex tests on Windows " ,
57
57
)
58
58
59
59
60
60
def pytest_collection_modifyitems (config , items ):
61
61
if config .getoption ("--runcomplex" ):
62
62
return
63
- skip_complex = pytest .mark .skip (reason = "need --runcomplex option to run" )
63
+ skip_complex = pytest .mark .skipif (
64
+ os .name == "nt" ,
65
+ reason = "need --runcomplex option to run on Windows" ,
66
+ )
64
67
for item in items :
65
68
if "broken_complex" in item .keywords :
66
69
item .add_marker (skip_complex )
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
17
17
import itertools
18
- import os
19
18
20
19
import numpy as np
21
20
import pytest
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
17
17
import itertools
18
- import os
19
18
20
19
import numpy as np
21
20
import pytest
You can’t perform that action at this time.
0 commit comments