@@ -81,7 +81,6 @@ def test_repeat_with_separator_rules(self) -> None:
81
81
"""
82
82
rules = parse_string (grammar , GrammarParser ).rules
83
83
self .assertEqual (str (rules ["start" ]), "start: ','.thing+ NEWLINE" )
84
- print (repr (rules ["start" ]))
85
84
self .assertTrue (repr (rules ["start" ]).startswith (
86
85
"Rule('start', None, Rhs([Alt([NamedItem(None, Gather(StringLeaf(\" ','\" ), NameLeaf('thing'"
87
86
))
@@ -511,7 +510,7 @@ def test_cut(self) -> None:
511
510
expr: NUMBER
512
511
"""
513
512
parser_class = make_parser (grammar )
514
- node = parse_string ("(1)" , parser_class , verbose = True )
513
+ node = parse_string ("(1)" , parser_class )
515
514
self .assertEqual (node , [
516
515
TokenInfo (OP , string = "(" , start = (1 , 0 ), end = (1 , 1 ), line = "(1)" ),
517
516
[TokenInfo (NUMBER , string = "1" , start = (1 , 1 ), end = (1 , 2 ), line = "(1)" )],
@@ -695,8 +694,6 @@ def test_deep_nested_rule(self) -> None:
695
694
printer .print_grammar_ast (rules , printer = lines .append )
696
695
697
696
output = "\n " .join (lines )
698
- print ()
699
- print (output )
700
697
expected_output = textwrap .dedent (
701
698
"""\
702
699
└──Rule
0 commit comments