Skip to content

Commit

Permalink
Use assert_allclose() in test_qr_large
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-perevezentsev committed Jan 20, 2025
1 parent 00deddf commit 871b8a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpnp/tests/test_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2430,9 +2430,9 @@ def test_qr_large(self, dtype, shape, mode):
decimal=5,
)
else: # mode=="raw"
assert_dtype_allclose(dpnp_q, np_q, factor=12)
assert_allclose(np_q, dpnp_q, atol=1e-4)
if mode in ("raw", "r"):
assert_dtype_allclose(dpnp_r, np_r, factor=12)
assert_allclose(np_r, dpnp_r, atol=1e-4)

@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True))
@pytest.mark.parametrize(
Expand Down

0 comments on commit 871b8a2

Please sign in to comment.