def _test_factory(test, dtype=np.double):
 olderr = np.seterr(all='ignore')
 try:
  test.check(dtype=dtype)
 finally:
  np.seterr(**olderr)

def _test_factory ( test , dtype = np . double ) : olderr = np . seterr ( all = 'ignore' ) try : test . check ( dtype = dtype ) finally : np . seterr ( ** olderr )
boost test .