diff --git a/test/cli/test-other.py b/test/cli/test-other.py index d638336ef65..7ff5bd3ae86 100644 --- a/test/cli/test-other.py +++ b/test/cli/test-other.py @@ -828,9 +828,7 @@ def test_file_duplicate_2(tmpdir): assert stderr == '' -def test_premium_with_relative_path(tmpdir): - - +def test_premium_with_relative_path(tmpdir): # 12254 test_file = os.path.join(tmpdir, 'test.c') with open(test_file, 'wt'): pass @@ -850,7 +848,7 @@ def test_premium_with_relative_path(tmpdir): } """.replace('NAME', product_name)) - if os.path.isfile('cppcheck') : + if os.path.isfile('cppcheck'): os.chdir('test/cli') args = ['--premium=misra-c++-2008', test_file] @@ -862,3 +860,5 @@ def test_premium_with_relative_path(tmpdir): _, stdout, stderr = cppcheck(['--version']) assert stdout == product_name + '\n' assert stderr == '' + + os.remove(test_cfg)