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

Method test_single_mode_flag

Lib/test/test_ast/test_ast.py:3500–3510  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3498 self.check_output(source, expect, flag)
3499
3500 def test_single_mode_flag(self):
3501 # test 'python -m ast -m/--mode single'
3502 source = 'pass'
3503 expect = '''
3504 Interactive(
3505 body=[
3506 Pass()])
3507 '''
3508 for flag in ('-m=single', '--mode=single'):
3509 with self.subTest(flag=flag):
3510 self.check_output(source, expect, flag)
3511
3512 def test_eval_mode_flag(self):
3513 # test 'python -m ast -m/--mode eval'

Callers

nothing calls this directly

Calls 2

check_outputMethod · 0.95
subTestMethod · 0.45

Tested by

no test coverage detected