MCPcopy Create free account
hub / github.com/dask/dask / flaky_double

Function flaky_double

dask/tests/test_distributed.py:463–464  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

461 scale = varying([ZeroDivisionError("one"), ZeroDivisionError("two"), 2, 2])
462
463 def flaky_double(x):
464 return scale() * x
465
466 # A reliable double function.
467 def reliable_double(x):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected