Skip to content

Commit 0f4fcbb

Browse files
committed
Ignore the rest of what doesn't need to run.
1 parent a58749b commit 0f4fcbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

referencing_loaders/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ def _from_walked(
7575
if specification is None:
7676
specification = Specification.detect(contents) # type: ignore[reportUnknownMemberType]
7777
resource = specification.detect(contents).create_resource(contents)
78-
uri = getattr(path, "as_uri", lambda: "")()
78+
uri = getattr(path, "as_uri", lambda: "")() # pragma: no cover
7979
yield uri, resource

referencing_loaders/tests/test_loaders.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
try:
55
from importlib.resources import files
6-
except ImportError:
6+
except ImportError: # pragma: no cover
77
from importlib_resources import files
88

99
from referencing import Registry

0 commit comments

Comments
 (0)