summaryrefslogtreecommitdiffstats
path: root/Lib/test/test___future__.py
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-04-29 22:53:30 (GMT)
committerGitHub <noreply@github.com>2020-04-29 22:53:30 (GMT)
commit69e802ed812e38cb68a4ab74af64b4f719b6cc78 (patch)
tree1c05825a7f7ee032471c4cdc8bb60c648b1f491e /Lib/test/test___future__.py
parent360371f79c48f15bbcee7aeecacf97a899913b25 (diff)
downloadcpython-69e802ed812e38cb68a4ab74af64b4f719b6cc78.zip
cpython-69e802ed812e38cb68a4ab74af64b4f719b6cc78.tar.gz
cpython-69e802ed812e38cb68a4ab74af64b4f719b6cc78.tar.bz2
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___future__.py')
0 files changed, 0 insertions, 0 deletions