MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_single_mode_flag

Method test_single_mode_flag

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

Source from the content-addressed store, hash-verified

3524 self.check_output(source, expect, flag)
3525
3526 def test_single_mode_flag(self):
3527 # test 'python -m ast -m/--mode single'
3528 source = 'pass'
3529 expect = '''
3530 Interactive(
3531 body=[
3532 Pass()])
3533 '''
3534 for flag in ('-m=single', '--mode=single'):
3535 with self.subTest(flag=flag):
3536 self.check_output(source, expect, flag)
3537
3538 def test_eval_mode_flag(self):
3539 # test 'python -m ast -m/--mode eval'

Callers

nothing calls this directly

Calls 2

check_outputMethod · 0.95
subTestMethod · 0.80

Tested by

no test coverage detected