Skip to content

Commit

Permalink
TST: Relax sensitive pvalue sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
RUrlus committed Apr 22, 2024
1 parent bbd7d88 commit 415cfaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_diptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_diptest_bootstrap():
_TEST_SAMPLE, boot_pval=True, n_boot=10000, n_threads=1, seed=42
)
assert np.isclose(dip, _TEST_SAMPLE_DIP)
assert np.isclose(pv, _TEST_SAMPLE_PVAL, rtol=5e-4)
assert 0.075 < pv < 0.09


if _has_openmp_support:
Expand All @@ -207,7 +207,7 @@ def test_diptest_bootstrap_mt():
_TEST_SAMPLE, boot_pval=True, n_boot=10000, n_threads=cores, seed=42
)
assert np.isclose(dip, _TEST_SAMPLE_DIP)
assert abs(_TEST_SAMPLE_PVAL - pv) < 5e3
assert 0.075 < pv < 0.09


def test_diptest_full_output():
Expand Down

0 comments on commit 415cfaa

Please sign in to comment.