Skip to content

Commit 49971b0

Browse files
committed
Fix python tests
1 parent e255934 commit 49971b0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/cli/inline-suppress_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def test_build_dir_include(tmpdir):
256256
'--cppcheck-build-dir={}'.format(tmpdir),
257257
'--enable=all',
258258
'--inline-suppr',
259-
'{}5.c'.format(__proj_inline_suppres_path)
259+
'{}5.cpp'.format(__proj_inline_suppres_path)
260260
]
261261

262262
ret, stdout, stderr = cppcheck(args, cwd=__script_dir)

test/cli/premium_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ def test_build_dir_hash_cppcheck_product(tmpdir):
8888
assert exitcode == 0
8989

9090
def _get_hash(s:str):
91-
i = s.find(' hash="')
91+
i = s.find('<hash>')
9292
if i <= -1:
9393
return ''
9494
i += 7
95-
return s[i:s.find('"', i)]
95+
return s[i:s.find('</hash>', i)]
9696

9797
with open(build_dir.join('test.a1'), 'rt') as f:
9898
f1 = f.read()

0 commit comments

Comments
 (0)