Skip to content

Commit 9507a55

Browse files
committed
update
1 parent 1a39501 commit 9507a55

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/cli/other_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3342,7 +3342,6 @@ def test_preprocess_system_include(tmp_path): # #13928
33423342
def has_missing_include_string_warning(e):
33433343
return '<string>' in e
33443344

3345-
g0 = str(g[0])
33463345
args = [
33473346
'--enable=missingInclude',
33483347
str(test_file)
@@ -3353,7 +3352,7 @@ def has_missing_include_string_warning(e):
33533352
assert has_missing_include_string_warning(stderr), stderr
33543353

33553354
# include path provided => no missing include warning about <string>
3356-
args.append('-I' + os.path.dirname(g0))
3355+
args.append('-I' + os.path.dirname(str(g[0])))
33573356
_, _, stderr = cppcheck(args)
33583357
assert not has_missing_include_string_warning(stderr), stderr
33593358

0 commit comments

Comments
 (0)