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

Method test_specialized_code

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

Source from the content-addressed store, hash-verified

2630 self.check_output(source, expect, flag)
2631
2632 def test_specialized_code(self):
2633 # test 'python -m dis -S/--specialized'
2634 source = 'pass'
2635 expect = '''
2636 0 RESUME 0
2637
2638 1 LOAD_CONST 0 (None)
2639 RETURN_VALUE
2640 '''
2641 for flag in ['-S', '--specialized']:
2642 self.check_output(source, expect, flag)
2643
2644
2645if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

check_outputMethod · 0.95

Tested by

no test coverage detected