Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ test_compress
Method
test_compress
Lib/test/test_itertools.py:2039–2041 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2037
self.makecycle(combinations_with_replacement([1,2,a,3], 3), a)
2038
2039
def
test_compress(self):
2040
a = []
2041
self.makecycle(compress(
'ABCDEF'
, [1,0,1,0,1,0]), a)
2042
2043
def
test_count(self):
2044
a = []
Callers
nothing calls this directly
Calls
2
makecycle
Method · 0.95
compress
Function · 0.50
Tested by
no test coverage detected