MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / make_local_function

Function make_local_function

tests/testutils.py:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def make_local_function():
23 def g(x):
24 # this function checks that the globals are correctly handled and that
25 # the builtins are available
26 assert TEST_GLOBALS == "a test value"
27 return sum(range(10))
28
29 return g
30
31
32def _make_cwd_env():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected