MCPcopy Index your code
hub / github.com/python/cpython / sub

Method sub

Lib/test/test_asyncio/test_tasks.py:2564–2567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2562 cvar = contextvars.ContextVar('cvar', default='nope')
2563
2564 async def sub():
2565 await asyncio.sleep(0.01)
2566 self.assertEqual(cvar.get(), 'nope')
2567 cvar.set('something else')
2568
2569 async def main():
2570 self.assertEqual(cvar.get(), 'nope')

Callers 15

_msgobjMethod · 0.45
test_tagged_suffixMethod · 0.45
normalize_POT_fileFunction · 0.45
clean_textFunction · 0.45
html2textFunction · 0.45
dumpFunction · 0.45
c_str_reprFunction · 0.45
outputFunction · 0.45
normalizeFunction · 0.45
test_no_newlineMethod · 0.45
clean_screenFunction · 0.45

Calls 5

uniformMethod · 0.80
sleepMethod · 0.45
assertEqualMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected