Repository navigation
tests: port Python run tests to tests/lang (batch 2) - #955
Merged
Merged
Conversation
Thirteen tests/lang programs now cover run tests that used to transpile, compile and run from Python. Each passes ./flow test-lang and compiles under the Stage-A bootstrap. The superseded Python tests are deleted: 19 test functions across 14 files, three files removed outright. Run tests that fail under Stage-A stay in Python, tracked in #940 to #954.
godofecht
force-pushed
the
port/tests-to-flow
branch
from
September 27, 2026 21:59
b35d4de to
93874aa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batch 2 of moving the Python test suite to Flow. The batch sweeps every tests/unit and tests/integration file for tests that build a program and run it, and ports the ones Flow can express today.
What changed
Verification
./flow test-lang(strict).compiler/build/flowc_bootstrap, bundle mode) and exits with the expected code. The one exception is test_max_iterations_abort, which compiles but exits 0 under Stage-A (Stage-A: @max_iterations bound is ignored at runtime #940)../flow test-langoverall: 131 of 138 pass. The 7 failures are pre-existing files this PR does not touch (the c_import header paths, test_extern_type, test_overload_registry_port, and test_generic_channels via test-lang: programs importing stdlib/concurrent.flow fail to link on macOS (CoreFoundation missing) #953).Run tests left in Python
These pass under the Python host but fail under Stage-A or the strict checker. Each has an issue with a minimal repro:
#940 #941 #942 #943 #944 #945 #946 #947 #949 #950 #951 #952 #953 #954.
compiler/src and compiler/bootstrap are unchanged.