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

Method test_include_attributes_flag

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

Source from the content-addressed store, hash-verified

3556 self.check_output(source, expect, '--no-type-comments')
3557
3558 def test_include_attributes_flag(self):
3559 # test 'python -m ast -a/--include-attributes'
3560 source = 'pass'
3561 expect = '''
3562 Module(
3563 body=[
3564 Pass(
3565 lineno=1,
3566 col_offset=0,
3567 end_lineno=1,
3568 end_col_offset=4)])
3569 '''
3570 for flag in ('-a', '--include-attributes'):
3571 with self.subTest(flag=flag):
3572 self.check_output(source, expect, flag)
3573
3574 def test_indent_flag(self):
3575 # test 'python -m ast -i/--indent 0'

Callers

nothing calls this directly

Calls 2

check_outputMethod · 0.95
subTestMethod · 0.45

Tested by

no test coverage detected