File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
2- # python -m pytest test- inline-suppress .py
2+ # python -m pytest inline-suppress_test .py
33
44import json
55import 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
You can’t perform that action at this time.
0 commit comments