bpo-40334: Fix test_peg_parser to actually use the old parser (GH-19778)
Now that the default parser is the new PEG parser, ast.parse uses it, which means that we don't actually test something in test_peg_parser. This commit introduces a new keyword argument (`oldparser`) for `_peg_parser.parse_string` for specifying that a string needs to be parsed with the old parser. This keyword argument is used in the tests to actually compare the ASTs the new parser generates with those generated by the old parser.
L
Lysandros Nikolaou committed
69e802ed812e38cb68a4ab74af64b4f719b6cc78
Parent: 360371f
Committed by GitHub <noreply@github.com>
on 4/29/2020, 10:53:30 PM