Skip to content

Commit

Permalink
Merge pull request scipy#21930 from rgommers/test-expm-multiply-tweak
Browse files Browse the repository at this point in the history
TST: sparse.linalg: tweak rtol for flaky `expm_multiply` test
  • Loading branch information
lucascolley authored Nov 23, 2024
2 parents 20ece11 + bec818e commit 33bc2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/sparse/linalg/tests/test_expm_multiply.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _help_test_specific_expm_interval_status(self, target_status):
@pytest.mark.parametrize("b_is_matrix", [False, True])
def test_expm_multiply_dtype(dtype_a, dtype_b, b_is_matrix):
"""Make sure `expm_multiply` handles all numerical dtypes correctly."""
assert_allclose_ = (partial(assert_allclose, rtol=1.2e-3, atol=1e-5)
assert_allclose_ = (partial(assert_allclose, rtol=1.8e-3, atol=1e-5)
if {dtype_a, dtype_b} & IMPRECISE else assert_allclose)
rng = np.random.default_rng(1234)
# test data
Expand Down

0 comments on commit 33bc2d5

Please sign in to comment.