@@ -81,7 +81,6 @@ def test_repeat_with_separator_rules(self) -> None:
8181 """
8282 rules = parse_string (grammar , GrammarParser ).rules
8383 self .assertEqual (str (rules ["start" ]), "start: ','.thing+ NEWLINE" )
84- print (repr (rules ["start" ]))
8584 self .assertTrue (repr (rules ["start" ]).startswith (
8685 "Rule('start', None, Rhs([Alt([NamedItem(None, Gather(StringLeaf(\" ','\" ), NameLeaf('thing'"
8786 ))
@@ -511,7 +510,7 @@ def test_cut(self) -> None:
511510 expr: NUMBER
512511 """
513512 parser_class = make_parser (grammar )
514- node = parse_string ("(1)" , parser_class , verbose = True )
513+ node = parse_string ("(1)" , parser_class )
515514 self .assertEqual (node , [
516515 TokenInfo (OP , string = "(" , start = (1 , 0 ), end = (1 , 1 ), line = "(1)" ),
517516 [TokenInfo (NUMBER , string = "1" , start = (1 , 1 ), end = (1 , 2 ), line = "(1)" )],
@@ -695,8 +694,6 @@ def test_deep_nested_rule(self) -> None:
695694 printer .print_grammar_ast (rules , printer = lines .append )
696695
697696 output = "\n " .join (lines )
698- print ()
699- print (output )
700697 expected_output = textwrap .dedent (
701698 """\
702699 └──Rule
0 commit comments