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

Method test_disassemble_coroutine

Lib/test/test_dis.py:1232–1237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1230 self.assertEqual(agen_disas, agen_func_disas)
1231
1232 def test_disassemble_coroutine(self):
1233 coro_func_disas = self.get_disassembly(_co) # Coroutine function
1234 coro = _co(1) # Coroutine object
1235 coro.close() # Avoid a RuntimeWarning (never awaited)
1236 coro_disas = self.get_disassembly(coro)
1237 self.assertEqual(coro_disas, coro_func_disas)
1238
1239 def test_disassemble_fstring(self):
1240 self.do_disassembly_test(_fstring, dis_fstring)

Callers

nothing calls this directly

Calls 4

get_disassemblyMethod · 0.95
_coFunction · 0.85
closeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected