Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ clear
Method
clear
Lib/test/test_functools.py:1966–1969 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1964
self.assertEqual(f(k, 0), orig(k, 0))
1965
1966
def
clear():
1967
start.wait(10)
1968
for
_ in range(2*m):
1969
f.cache_clear()
1970
1971
orig_si = sys.getswitchinterval()
1972
support.setswitchinterval(1e-6)
Callers
15
setUp
Method · 0.45
tearDown
Method · 0.45
assertNoted
Method · 0.45
test_resurrection_only_happens_once_per_object
Method · 0.45
test_resurrection_does_not_block_cleanup_of_other_objects
Method · 0.45
setUp
Method · 0.45
tearDown
Method · 0.45
test_descriptor_not_double_executed_on_spec_fail
Method · 0.45
write
Method · 0.45
test_clear
Method · 0.45
clear
Method · 0.45
__eq__
Method · 0.45
Calls
1
wait
Method · 0.45
Tested by
no test coverage detected