diff options
| author | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-26 12:32:56 +0100 |
|---|---|---|
| committer | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-26 12:32:56 +0100 |
| commit | 1f92ae6a5d515db5b0a7b0641e3470833785d0ba (patch) | |
| tree | 5f7ad0ea9a6100f3d8f874ab7347e120630c16e9 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | 53604abbfcdab3a9203ddce7135ef88475788173 (diff) | |
piecewise_parse: the barry test holds on CPython 3.12.1; parse() takes pieces only where needed (TEST-TRANSLATOR-PIECEWISE-PARSE)
Two findings from the review of #2237:
test_barry_as_flufl_is_parsed_whole errored on CPython 3.12.1 (lixonik):
there the parser does not read `from __future__ import barry_as_FLUFL` from
the source, so the stock compile it took as its reference rejects `<>`.
_PyPegen_checked_future_import is missing in v3.12.0, v3.12.1 and v3.13.0
and present in v3.12.16, v3.13.13 and v3.14.7. The test now takes this
interpreter's compile outcome, tree or error, for both spellings, and still
checks that the pieces give up.
On a fixed interpreter the pieces are the slower way (GrahamboJangles:
0.21 s whole, 0.54 s in pieces for the translator on 3.14.9). support.py
already installs its loader only where needed(); parse() now does the same
for its callers, the five standalone tests, unless piece_lines is named.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions