Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

aaronreidsmith / scipy   python

Repository URL to install this package:

Version: 1.3.3 

/ special / tests / test_round.py

from __future__ import division, print_function, absolute_import

import numpy as np
import pytest

from scipy.special import _test_round


@pytest.mark.skipif(not _test_round.have_fenv(), reason="no fenv()")
def test_add_round_up():
    np.random.seed(1234)
    _test_round.test_add_round(10**5, 'up')


@pytest.mark.skipif(not _test_round.have_fenv(), reason="no fenv()")
def test_add_round_down():
    np.random.seed(1234)
    _test_round.test_add_round(10**5, 'down')