File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
mark_windows_only = pytest .mark .skipif (
14
- platform .system () != 'Windows' , reason = 'Windows only tests'
14
+ platform .system () != 'Windows' , reason = 'only runs on windows'
15
+ )
16
+ mark_not_windows = pytest .mark .skipif (
17
+ platform .system () == 'Windows' , reason = 'does not run on windows'
15
18
)
16
19
17
20
Original file line number Diff line number Diff line change 1
1
"""install_cxx_toolchain tests"""
2
2
3
- from test import mark_windows_only
3
+ from test import mark_windows_only , mark_not_windows
4
4
import pytest
5
5
6
6
from cmdstanpy import install_cxx_toolchain
@@ -26,7 +26,7 @@ def test_config() -> None:
26
26
assert config == config_reference
27
27
28
28
29
- @mark_windows_only
29
+ @mark_not_windows
30
30
def test_install_not_windows () -> None :
31
31
"""Try to install on unsupported platform."""
32
32
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ def test_windows_short_path_file_with_space() -> None:
591
591
short_path = windows_short_path (original_path )
592
592
assert os .path .exists (os .path .split (short_path )[0 ])
593
593
assert original_path != short_path
594
- assert ' ' not in short_path
594
+ assert ' ' in short_path
595
595
assert os .path .splitext (short_path )[1 ] == '.csv'
596
596
597
597
You can’t perform that action at this time.
0 commit comments