summaryrefslogtreecommitdiff
path: root/Lib/test/test_code.py
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-04-30 01:53:30 +0300
committerGitHub <noreply@github.com>2020-04-29 23:53:30 +0100
commit69e802ed812e38cb68a4ab74af64b4f719b6cc78 (patch)
tree1c05825a7f7ee032471c4cdc8bb60c648b1f491e /Lib/test/test_code.py
parent360371f79c48f15bbcee7aeecacf97a899913b25 (diff)
downloadcpython-git-69e802ed812e38cb68a4ab74af64b4f719b6cc78.tar.gz
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.
Diffstat (limited to 'Lib/test/test_code.py')
0 files changed, 0 insertions, 0 deletions