Skip to content

Commit f4be614

Browse files
authored
fixed lookup_test.py::test_addon_lookup_relative_noext_trailing_notfound on Windows (#8445)
1 parent 7e36471 commit f4be614

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/cli/lookup_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,13 +926,15 @@ def test_addon_lookup_relative_noext_trailing_notfound(tmpdir):
926926
exitcode, stdout, _, exe = cppcheck_ex(['--debug-lookup=addon', '--addon=addon/misra/', test_file])
927927
exepath = os.path.dirname(exe)
928928
exepath_sep = exepath + os.path.sep
929+
if sys.platform == 'win32':
930+
exepath_sep = exepath_sep.replace('\\', '/')
929931
assert exitcode == 1, stdout
930932
lines = stdout.splitlines()
931933
assert lines == [
932934
# TODO: should not append extension
933935
"looking for addon 'addon/misra/.py'",
934936
"looking for addon '{}addon/misra/.py'".format(exepath_sep),
935-
"looking for addon '{}addons/addon/misra/.py'".format(exepath_sep), # TODO: mixed separators
937+
"looking for addon '{}addons/addon/misra/.py'".format(exepath_sep),
936938
'Did not find addon addon/misra/.py'
937939
]
938940

0 commit comments

Comments
 (0)