Skip to content

Commit 9bd9d27

Browse files
committed
MNT: Ignore coverage of fallback imports
1 parent 4df6327 commit 9bd9d27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templateflow/_loader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
try:
1616
from functools import cache
17-
except ImportError: # PY38
17+
except ImportError: # PY38 # pragma: no cover
1818
from functools import lru_cache as cache
1919

2020
try: # Prefer backport to leave consistency to dependency spec
2121
from importlib_resources import as_file, files
22-
except ImportError:
22+
except ImportError: # pragma: no cover
2323
from importlib.resources import as_file, files # type: ignore
2424

2525
try: # Prefer stdlib so Sphinx can link to authoritative documentation
2626
from importlib.resources.abc import Traversable
27-
except ImportError:
27+
except ImportError: # pragma: no cover
2828
from importlib_resources.abc import Traversable
2929

3030
__all__ = ["Loader"]

0 commit comments

Comments
 (0)