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

Method test_show_positions

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

Source from the content-addressed store, hash-verified

2618 self.check_output(source, expect, flag)
2619
2620 def test_show_positions(self):
2621 # test 'python -m dis -P/--show-positions'
2622 source = 'pass'
2623 expect = '''
2624 0:0-1:0 RESUME 0
2625
2626 1:0-1:4 LOAD_CONST 0 (None)
2627 1:0-1:4 RETURN_VALUE
2628 '''
2629 for flag in ['-P', '--show-positions']:
2630 self.check_output(source, expect, flag)
2631
2632 def test_specialized_code(self):
2633 # test 'python -m dis -S/--specialized'

Callers

nothing calls this directly

Calls 1

check_outputMethod · 0.95

Tested by

no test coverage detected