Skip to content

Commit d486670

Browse files
author
Your Name
committed
Fix linting warnings
1 parent b36a9c7 commit d486670

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

test/addon/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def create(self, code, filename='test.c', extra_args=()):
4848
proc = subprocess.run(cmd,
4949
stdout=subprocess.PIPE,
5050
stderr=subprocess.PIPE,
51+
check=True,
5152
universal_newlines=True)
5253
assert proc.returncode == 0, \
5354
'cppcheck failed with exit code %d:\n%s\n%s' % (proc.returncode, proc.stdout, proc.stderr)

test/addon/test_cppcheckdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,11 +725,11 @@ def test_unknown_binding_raises(self, match_cfg):
725725
res = cppcheckdata.match(calc_call, '%name%@ftok (*)')
726726
assert res
727727
with pytest.raises(AttributeError):
728-
res.nosuchbinding
728+
res.nosuchbinding # pylint: disable=W0104
729729
res = cppcheckdata.match(calc_call, '%name%@ftok [*]')
730730
assert not res
731731
with pytest.raises(AttributeError):
732-
res.nosuchbinding
732+
res.nosuchbinding # pylint: disable=W0104
733733

734734
# ---- '**' forward search ----
735735

0 commit comments

Comments
 (0)