@pytest.fixture(scope='module', params=['cpu'])
def backend_cpu64(request):
 be = get_backend(request, datatype=np.float64)
 def cleanup():
  be = request.getfuncargvalue('backend_cpu64')
  del be
 request.addfinalizer(cleanup)
 return be

@ pytest . fixture ( scope = 'module' , params = [ 'cpu' ] ) def backend_cpu64 ( request ) : be = get_backend ( request , datatype = np . float64 ) def cleanup ( ) : be = request . getfuncargvalue ( 'backend_cpu64' ) del be request . addfinalizer ( cleanup ) return be
fixture that returns a cpu backend using 64 bit dtype .