MCPcopy Create free account
hub / github.com/numpy/numpy / cb

Method cb

numpy/f2py/tests/test_callback.py:127–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 errors = []
126
127 def cb():
128 # Sleep here to make it more likely for another thread
129 # to call their callback at the same time.
130 time.sleep(1e-3)
131
132 # Check reentrancy
133 r = self.module.t(lambda: 123)
134 assert r == 123
135
136 return 42
137
138 def runner(name):
139 try:

Callers

nothing calls this directly

Calls 1

tMethod · 0.80

Tested by

no test coverage detected