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

Method test_show_offsets

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

Source from the content-addressed store, hash-verified

2606 self.check_output(source, expect, flag)
2607
2608 def test_show_offsets(self):
2609 # test 'python -m dis -O/--show-offsets'
2610 source = 'pass'
2611 expect = '''
2612 0 0 RESUME 0
2613
2614 1 4 LOAD_CONST 0 (None)
2615 6 RETURN_VALUE
2616 '''
2617 for flag in ['-O', '--show-offsets']:
2618 self.check_output(source, expect, flag)
2619
2620 def test_show_positions(self):
2621 # test 'python -m dis -P/--show-positions'

Callers

nothing calls this directly

Calls 1

check_outputMethod · 0.95

Tested by

no test coverage detected