Skip to content

Commit

Permalink
Bears-R-Us#3802: sporadic failures of test_assert_frame_equal_check_e…
Browse files Browse the repository at this point in the history
…xact (Bears-R-Us#3808)

Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
  • Loading branch information
ajpotts and ajpotts authored Oct 3, 2024
1 parent a44dd0f commit 2286432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testing/asserters_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ def test_assert_frame_equal_check_exact(self, size, left_as_arkouda, right_as_ar
# check_exact
# rtol
# atol
rng = ak.random.default_rng()
rng = ak.random.default_rng(seed=17)
atol = 0.001
rtol = 0.001

Expand All @@ -887,13 +887,15 @@ def test_assert_frame_equal_check_exact(self, size, left_as_arkouda, right_as_ar
assert_frame_equal(df, df_rtol_atol, check_exact=True)
with pytest.raises(AssertionError):
assert_frame_equivalent(convert_left(df), convert_right(df_rtol_atol), check_exact=True)

if both_ak:
with pytest.raises(AssertionError):
assert_frame_equal(df, df_rtol_atol, check_exact=False, rtol=rtol)
with pytest.raises(AssertionError):
assert_frame_equivalent(
convert_left(df), convert_right(df_rtol_atol), check_exact=False, rtol=rtol
)

if both_ak:
with pytest.raises(AssertionError):
assert_frame_equal(df, df_rtol_atol, check_exact=False, atol=atol)
Expand Down

0 comments on commit 2286432

Please sign in to comment.