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

Function test

extra_tests/snippets/syntax_async.py:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72ls = []
73
74def test():
75 global SLEEP_UNIT
76 if sys.platform.startswith("win"):
77 SLEEP_UNIT *= 2
78 ls.clear()
79 asyncio.run(run(), debug=True)
80 assert ls == expected
81
82
83for i in reversed(range(10)):

Callers 2

syntax_async.pyFile · 0.70
runMethod · 0.50

Calls 4

runFunction · 0.70
startswithMethod · 0.45
clearMethod · 0.45
runMethod · 0.45

Tested by 1

runMethod · 0.40