test_threadOwnership

Exercise Python simulation lifetimes with separate startup and shutdown deadlines.

test_threadOwnership.test_subprocess_deadlines_report_phase_and_output(tmp_path, phase)[source]

Detect stalls in either phase and retain child output for diagnosis.

Parameters:
  • tmp_path – Temporary directory supplied by pytest.

  • phase – Successful completion or the phase in which the child stalls.

test_threadOwnership.test_thread_ownership(case, thread_count, tmp_path)[source]

Preserve Python scheduling and exception handling without shutdown hangs.

Parameters:
  • case – Simulation lifetime or exception scenario.

  • thread_count – Number of configured simulation workers.

  • tmp_path – Temporary directory supplied by pytest.