"Re-running failed tests in verbose mode" does not use host runner · Issue #94052 · python/cpython
Bug report
Issue GH-84461 / PR GH-91930 introduces a new test runner API to execute tests with a different Python interpreter. It is used by WebAssembly and other cross-compile targets to run tests. The test controll process uses the native build Python interpreter while the tests workers use the cross compiled host Python interpreter with a HOSTRUNNER like wasmtime or NodeJS.
The rerun_failed_tests() method does not use ns.python. Failed tests are re-executed with the build Python instead of host Python.