Skip to content

Commit cbbfa69

Browse files
committed
test/cli/clang-import_test.py: skip on Windows for now
1 parent 9e2d3b2 commit cbbfa69

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎test/cli/clang-import_test.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import os
55
import re
66
import subprocess
7+
import sys
8+
79
import pytest
810
from testutils import cppcheck, assert_cppcheck
911

@@ -13,6 +15,11 @@
1315
pytest.skip("'clang' does not exist", allow_module_level=True)
1416

1517

18+
# the IDs differ with Visual Studio
19+
if sys.platform == 'win32':
20+
pytest.skip(allow_module_level=True)
21+
22+
1623
def get_debug_section(title, stdout):
1724
s = re.sub(r'0x[0-9a-fA-F]+', '0x12345678', stdout)
1825
s = re.sub(r'nestedIn: Struct', 'nestedIn: Class', s)
@@ -129,7 +136,7 @@ def test_log(tmpdir):
129136

130137
args = ['--clang', test_file]
131138
out_lines = [
132-
'Checking {} ...'.format(test_file),
139+
'Checking {} ...'.format(test_file).replace('\\', '/'),
133140
]
134141

135142
assert_cppcheck(args, ec_exp=0, err_exp=[], out_exp=out_lines)

0 commit comments

Comments
 (0)