Skip to content

Commit

Permalink
paquo: excludes lines from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 12, 2020
1 parent d858411 commit 124b8fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paquo/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def add_image(self,
if img_uri is None:
raise FileNotFoundError(f"image_provider can't provide URI for requested image_id: '{image_id}'")
img_id = self._image_provider.id(img_uri)
if not img_id == image_id:
if not img_id == image_id: # pragma: no cover
_log.warning(f"image_provider roundtrip error: '{image_id}' -> uri -> '{img_id}'")
raise RuntimeError("the image provider failed to roundtrip the image id correctly")

Expand Down
2 changes: 1 addition & 1 deletion paquo/tests/test_jpype_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_find_qupath(tmp_path):
if _conda_qupath_dir() is not None:
cm = nullcontext()
else:
cm = pytest.raises(ValueError) # pragma: mo cover
cm = pytest.raises(ValueError) # pragma: no cover
with cm:
# search conda last
find_qupath(qupath_search_conda=True, qupath_prefer_conda=False)
Expand Down

0 comments on commit 124b8fd

Please sign in to comment.