Skip to content

Commit 04e15e3

Browse files
committed
cleanup
1 parent 73aa896 commit 04e15e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/cli/lookup_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,7 @@ def test_lookup_path(tmpdir, type, file):
943943
with open(os.path.join(path, "cppcheck.cfg"), 'wt') as f:
944944
f.write('{}')
945945
exitcode, stdout, stderr, _ = cppcheck_ex(args=[f'--debug-lookup={type}', test_file], cppcheck_exe=cppcheck, cwd=str(tmpdir), env=env)
946+
os.remove(os.path.join(path, "cppcheck.cfg")) # clean up otherwise other tests may fail
946947
else:
947948
exitcode, stdout, stderr, _ = cppcheck_ex(args=[f'--debug-lookup={type}', f'--{type}={file}', test_file], cppcheck_exe=cppcheck, cwd=str(tmpdir), env=env)
948949
assert exitcode == 0, stdout if stdout else stderr

0 commit comments

Comments
 (0)