Skip to content

Commit 8c14d8b

Browse files
Use pragma: no cover to exclude unlikely branches from coverage stats
See https://coverage.readthedocs.io/en/7.6.10/excluding.html
1 parent c3da2e5 commit 8c14d8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tensor/_numpy_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
_npver = np.lib.NumpyVersion(np.__version__)
2020

21-
if _npver < "1.25.0":
21+
if _npver < "1.25.0": # pragma: no cover
2222
from numpy import AxisError
2323
else:
2424
from numpy.exceptions import AxisError
2525

2626
if _npver >= "2.0.0":
2727
from numpy._core.numeric import normalize_axis_index, normalize_axis_tuple
28-
else:
28+
else: # pragma: no cover
2929
from numpy.core.numeric import normalize_axis_index, normalize_axis_tuple
3030

3131

0 commit comments

Comments
 (0)