Skip to content

Commit

Permalink
Fix test for special.sph_harm to ignore DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
asi1024 committed Jan 24, 2025
1 parent f72cee4 commit 89d72fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cupyx_tests/scipy_tests/special_tests/test_sph_harm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ def _get_harmonic_list(degree_max):
@testing.with_requires("scipy")
class TestBasic():

@pytest.mark.filterwarnings('ignore::DeprecationWarning')
@pytest.mark.parametrize("m, n", _get_harmonic_list(degree_max=5))
@testing.for_dtypes(["e", "f", "d"])
@numpy_cupy_allclose(scipy_name="scp")
@numpy_cupy_allclose(scipy_name="scp", rtol=1e-7, atol=1e-10)
def test_sph_harm(self, xp, scp, dtype, m, n):
theta = xp.linspace(0, 2 * cp.pi)
phi = xp.linspace(0, cp.pi)
Expand Down

0 comments on commit 89d72fa

Please sign in to comment.