Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celery/celery
/ test_mlazy
Function
test_mlazy
t/unit/utils/test_functional.py:89–95 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
87
88
89
def
test_mlazy():
90
it = iter(range(20, 30))
91
p = mlazy(it.__next__)
92
assert p() == 20
93
assert p.evaluated
94
assert p() == 20
95
assert repr(p) ==
'20'
96
97
98
class
test_regen:
Callers
nothing calls this directly
Calls
1
mlazy
Class · 0.90
Tested by
no test coverage detected