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

Method test_indent_flag

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

Source from the content-addressed store, hash-verified

3572 self.check_output(source, expect, flag)
3573
3574 def test_indent_flag(self):
3575 # test 'python -m ast -i/--indent 0'
3576 source = 'pass'
3577 expect = '''
3578 Module(
3579 body=[
3580 Pass()])
3581 '''
3582 for flag in ('-i=0', '--indent=0'):
3583 with self.subTest(flag=flag):
3584 self.check_output(source, expect, flag)
3585
3586 def test_feature_version_flag(self):
3587 # test 'python -m ast --feature-version 3.9/3.10'

Callers

nothing calls this directly

Calls 2

check_outputMethod · 0.95
subTestMethod · 0.45

Tested by

no test coverage detected