mirror of
https://github.com/simonw/datasette.git
synced 2026-09-28 04:44:21 +02:00
Front-load the kit's subprocess test to dodge the macOS fork crash
test_kit_module_itself_never_imports_the_sdk shells out, and like every subprocess-spawning test in this suite it crashes the interpreter with SIGBUS on macOS/CPython 3.13 when it runs late enough that the process holds many threads - the exact failure conftest already front-loads test_datasette_package_never_imports_the_sdk for. Move it to the front too, and note the hazard in assert_package_never_imports_sdk's docstring since plugin suites will call it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012U7coQfVu8nK2R4q2mCULA
This commit is contained in:
parent
f9ae7fda9a
commit
33839b764a
3 changed files with 16 additions and 2 deletions
|
|
@ -188,6 +188,7 @@ def pytest_collection_modifyitems(config, items):
|
|||
# (SIGSEGV/SIGBUS inside _execute_child). Reproduces with any subprocess
|
||||
# call placed there, on an unmodified tree - running it first avoids it.
|
||||
move_to_front(items, "test_datasette_package_never_imports_the_sdk")
|
||||
move_to_front(items, "test_kit_module_itself_never_imports_the_sdk")
|
||||
move_to_front(items, "test_no_provider_takes_the_fast_path")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue