]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Correct coverage gap in control
authorSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2023 16:22:25 +0000 (10:22 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 16:54:50 +0000 (12:54 -0400)
Add a pragma to deal with the code-coverage gap which drops binman down to
90% coverage.

Fixes: de65b122a25 (tools: Fall back to importlib_resources on Python 3.6)
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/control.py

index 68597c4e77923f19e63bf29b66ea51e30c92f8aa..7e2dd3541b96efe027c7ae72e5c969124ffda527 100644 (file)
@@ -9,7 +9,7 @@ from collections import OrderedDict
 import glob
 try:
     import importlib.resources
-except ImportError:
+except ImportError:  # pragma: no cover
     # for Python 3.6
     import importlib_resources
 import os