Skip to content

Commit adb34f2

Browse files
committed
Fix
1 parent b046180 commit adb34f2

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

test/cli/inline-suppress_test.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# python -m pytest test-inline-suppress.py
2+
# python -m pytest inline-suppress_test.py
33

44
import json
55
import os
@@ -247,14 +247,13 @@ def test_build_dir(tmpdir):
247247
assert stdout == ''
248248
assert ret == 0, stdout
249249

250-
def test_build_dir_threads_suppressions(tmpdir):
250+
def test_build_dir_threads_suppressions(tmpdir): #14064
251251
args = [
252252
'-q',
253253
'--template=simple',
254254
'--cppcheck-build-dir={}'.format(tmpdir),
255255
'--enable=style',
256256
'--inline-suppr',
257-
'--executor=thread',
258257
'-j4',
259258
'reanalysis'
260259
]
@@ -266,13 +265,13 @@ def test_build_dir_threads_suppressions(tmpdir):
266265
assert ret == 0, stdout
267266

268267
a1Path = os.path.join(tmpdir, 'd.a1')
268+
assert os.path.exists(a1Path)
269269
mtimeOld = os.path.getmtime(a1Path)
270270

271-
for i in range(1, 10):
271+
for _ in range(1, 10):
272272
cppcheck(args, cwd=__script_dir)
273-
274-
mtimeNew = os.path.getmtime(a1Path)
275273

274+
mtimeNew = os.path.getmtime(a1Path)
276275
assert mtimeOld == mtimeNew
277276

278277

0 commit comments

Comments
 (0)