AIM-PIbd-32-Kurbanova-A-A/aimenv/Lib/site-packages/scipy/special/tests/test_round.py

19 lines
473 B
Python
Raw Normal View History

2024-10-02 22:15:59 +04:00
import numpy as np
import pytest
from scipy.special import _test_internal
@pytest.mark.fail_slow(5)
@pytest.mark.skipif(not _test_internal.have_fenv(), reason="no fenv()")
def test_add_round_up():
np.random.seed(1234)
_test_internal.test_add_round(10**5, 'up')
@pytest.mark.fail_slow(5)
@pytest.mark.skipif(not _test_internal.have_fenv(), reason="no fenv()")
def test_add_round_down():
np.random.seed(1234)
_test_internal.test_add_round(10**5, 'down')