Skip to content

Commit

Permalink
Ignore some lines for coverage (#633)
Browse files Browse the repository at this point in the history
* Ignore some lines for coverage

* Move code coverage skips to branches

Co-authored-by: jakirkham <[email protected]>

* Remove additional import

Co-authored-by: jakirkham <[email protected]>

---------

Co-authored-by: jakirkham <[email protected]>
  • Loading branch information
dstansby and jakirkham authored Nov 16, 2024
1 parent d78cadd commit ad1ad67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion numcodecs/checksum32.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .compat import ensure_contiguous_ndarray, ndarray_copy
from .jenkins import jenkins_lookup3

if TYPE_CHECKING:
if TYPE_CHECKING: # pragma: no cover
from typing_extensions import Buffer

CHECKSUM_LOCATION = Literal['start', 'end']
Expand Down
6 changes: 3 additions & 3 deletions numcodecs/tests/test_zarr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import numpy as np
import pytest

if not TYPE_CHECKING:
zarr = pytest.importorskip("zarr")
else:
if TYPE_CHECKING: # pragma: no cover
import zarr
else:
zarr = pytest.importorskip("zarr")

import zarr.storage
from zarr.core.common import JSON
Expand Down

0 comments on commit ad1ad67

Please sign in to comment.