Skip to content

Commit e5cd6cf

Browse files
authored
Ignore overflow warning in TestConsistency::test_erfc (#2601)
The PR mutes numpy overflow warning in `TestConsistency::test_erfc` raising due to type casting from float64 array to float32 dtype when no fp64 support for allocating dpnp array.
1 parent 6711bbd commit e5cd6cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpnp/tests/test_special.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def test_complex(self, func, dt):
6565

6666
class TestConsistency:
6767

68+
@pytest.mark.filterwarnings("ignore::RuntimeWarning")
6869
def test_erfc(self):
6970
# TODO: replace with dpnp.random.RandomState, once pareto is added
7071
rng = numpy.random.RandomState(1234)

0 commit comments

Comments
 (0)