MCPcopy 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

setUpMethod · 0.45
tearDownMethod · 0.45
assertNotedMethod · 0.45
setUpMethod · 0.45
tearDownMethod · 0.45
writeMethod · 0.45
test_clearMethod · 0.45
clearMethod · 0.45
__eq__Method · 0.45

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected