def _test_factory(test, dtype=np.double):
    olderr = np.seterr(all='ignore')
    try:
        test.check(dtype=dtype)
    finally:
        np.seterr(**olderr)
Boost test
dataset/ETHPy150Open scipy/scipy/scipy/special/tests/test_data.py/_test_factory