upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorfiestorra <fiestorra@users.noreply.github.com>2026-12-01 18:00:04 +0100
committerfiestorra <fiestorra@users.noreply.github.com>2026-12-01 18:00:04 +0100
commit74da6c8a4b2eadd53cf98f41f3e07e4401be9bf5 (patch)
tree4cf151a64c2b51da5cd0ee7d7d543e8b7ed701c2 /runtime/src/thread_stacks.cpp
parent85ec1d33b1a5dcc8a0af38f041996635c06645f7 (diff)
conftest: install the piecewise finder before the translator is imported
test_support_installs_the_finder_only_where_the_tokenizer_is_slow is the one test keeping the CI workflow red on 85ec1d33b, and it is red for a reason that has nothing to do with the translator: AssertionError: <class '_frozen_importlib_external.SourceFileLoader'> is not <class 'support.PiecewiseLoader'> support.py installs ToolsFinder just before PathFinder and then imports rdna2spirv through it, but tests/conftest.py imports rdna2spirv first, for its own fixtures. A finder can only take an import it is in sys.meta_path for, so under pytest the module is loaded by PathFinder and stays that way; run as `python tests/test_piecewise_parse.py` there is no conftest and the test passes. Green one way, red the other, for the same code. So conftest now puts tests/semantic on the path and imports support first. support.py imports rdna2spirv itself, so the line after it stays as it is and becomes the import that already happened. Measured, main 85ec1d33b, this machine (CPython 3.14, where needed() is true): python -m pytest tests/test_piecewise_parse.py 1 failed, 25 passed -> 26 passed python tests/test_piecewise_parse.py OK, still the five files ci.yml runs for this area + test_cpu_ref 81 passed, 34 skipped Written with an AI assistant.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions