MCPcopy Create free account
hub / github.com/apache/arrow / check

Function check

python/pyarrow/tests/test_memory.py:164–172  ·  view source on GitHub ↗
(factory, name, *, can_fail=False)

Source from the content-addressed store, hash-verified

162
163def test_memory_pool_factories():
164 def check(factory, name, *, can_fail=False):
165 if can_fail:
166 try:
167 pool = factory()
168 except NotImplementedError:
169 return
170 else:
171 pool = factory()
172 assert pool.backend_name == name
173
174 for backend_name in possible_backends:
175 check(backend_factory(backend_name), backend_name,

Callers 2

test_from_numpy_largeMethod · 0.70

Calls 1

factoryFunction · 0.85

Tested by

no test coverage detected