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

Method test_indent_flag

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

Source from the content-addressed store, hash-verified

3599 self.check_output(source, expect, flag)
3600
3601 def test_indent_flag(self):
3602 # test 'python -m ast -i/--indent 0'
3603 source = 'pass'
3604 expect = '''
3605 Module(
3606 body=[
3607 Pass()])
3608 '''
3609 for flag in ('-i=0', '--indent=0'):
3610 with self.subTest(flag=flag):
3611 self.check_output(source, expect, flag)
3612
3613 def test_feature_version_flag(self):
3614 # test 'python -m ast --feature-version 3.9/3.10'

Callers

nothing calls this directly

Calls 2

check_outputMethod · 0.95
subTestMethod · 0.80

Tested by

no test coverage detected