We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a39501 commit 9507a55Copy full SHA for 9507a55
1 file changed
test/cli/other_test.py
@@ -3342,7 +3342,6 @@ def test_preprocess_system_include(tmp_path): # #13928
3342
def has_missing_include_string_warning(e):
3343
return '<string>' in e
3344
3345
- g0 = str(g[0])
3346
args = [
3347
'--enable=missingInclude',
3348
str(test_file)
@@ -3353,7 +3352,7 @@ def has_missing_include_string_warning(e):
3353
3352
assert has_missing_include_string_warning(stderr), stderr
3354
3355
# include path provided => no missing include warning about <string>
3356
- args.append('-I' + os.path.dirname(g0))
+ args.append('-I' + os.path.dirname(str(g[0])))
3357
_, _, stderr = cppcheck(args)
3358
assert not has_missing_include_string_warning(stderr), stderr
3359
0 commit comments