MCPcopy Index your code
hub / github.com/RustPython/RustPython / clear

Method clear

Lib/test/test_functools.py:1935–1938  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1933 self.assertEqual(f(k, 0), orig(k, 0))
1934
1935 def clear():
1936 start.wait(10)
1937 for _ in range(2*m):
1938 f.cache_clear()
1939
1940 orig_si = sys.getswitchinterval()
1941 support.setswitchinterval(1e-6)

Callers 15

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

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected