Skip to content

Commit c61f25b

Browse files
author
Vahid Tavanashad
committed
move a test to its appropriate class
1 parent 1aea3c4 commit c61f25b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

dpnp/tests/test_fft.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,11 +605,15 @@ def test_inverse(self, dtype, n, norm):
605605
flag = True if numpy_version() < "2.0.0" else False
606606
assert_dtype_allclose(result, expected, check_only_type_kind=True)
607607

608+
def test_error(self):
609+
a = dpnp.ones(11)
610+
# incorrect norm
611+
assert_raises(ValueError, dpnp.fft.hfft, a, norm="backwards")
612+
608613
@pytest.mark.parametrize("dtype", get_complex_dtypes())
609614
def test_error(self, dtype):
610615
a = generate_random_numpy_array(11, dtype)
611616
ia = dpnp.array(a)
612-
613617
assert_raises(TypeError, dpnp.fft.ihfft, ia)
614618
assert_raises(TypeError, numpy.fft.ihfft, a)
615619

@@ -714,11 +718,6 @@ def test_validate_out(self):
714718
out = dpnp.empty((18,), dtype=dpnp.complex64)
715719
assert_raises(TypeError, dpnp.fft.irfft, a, out=out)
716720

717-
def test_error(self):
718-
a = dpnp.ones(11)
719-
# incorrect norm
720-
assert_raises(ValueError, dpnp.fft.hfft, a, norm="backwards")
721-
722721

723722
class TestRfft:
724723
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)