Skip to content

Commit 4b52ff5

Browse files
committed
resolve coverage
1 parent 7dd15eb commit 4b52ff5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_precision.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ def test_snippets():
148148
cmp_regimes,
149149
) = stumpy.snippets(T, m, k, s=s, mpdist_T_subseq_isconstant=isconstant_custom_func)
150150

151-
if not np.allclose(ref_snippets, cmp_snippets) and not numba.config.DISABLE_JIT:
151+
if (
152+
not np.allclose(ref_snippets, cmp_snippets) and not numba.config.DISABLE_JIT
153+
): # pragma: no cover
152154
# Revise fastmath flags by removing reassoc (to improve precision),
153155
# recompile njit functions, and re-compute snippets.
154156
core._calculate_squared_distance.targetoptions["fastmath"] = {
@@ -185,7 +187,7 @@ def test_snippets():
185187
npt.assert_almost_equal(ref_areas, cmp_areas, decimal=config.STUMPY_TEST_PRECISION)
186188
npt.assert_almost_equal(ref_regimes, cmp_regimes)
187189

188-
if not numba.config.DISABLE_JIT:
190+
if not numba.config.DISABLE_JIT: # pragma: no cover
189191
# Revert fastmath flag back to their default values
190192
config._reset("STUMPY_FASTMATH_FLAGS")
191193
core._calculate_squared_distance.targetoptions["fastmath"] = (

0 commit comments

Comments
 (0)