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

Method test_soft_keywords

Lib/test/test_peg_generator/test_c_parser.py:471–478  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

469 assert "expect_soft_keyword" not in parser_source
470
471 def test_soft_keywords(self) -> None:
472 grammar_source = """
473 start: expr+ NEWLINE? ENDMARKER
474 expr: "foo"
475 """
476 grammar = parse_string(grammar_source, GrammarParser)
477 parser_source = generate_c_parser_source(grammar)
478 assert "expect_soft_keyword" in parser_source
479
480 def test_soft_keywords_parse(self) -> None:
481 grammar_source = """

Callers

nothing calls this directly

Calls 2

parse_stringFunction · 0.90
generate_c_parser_sourceFunction · 0.90

Tested by

no test coverage detected