Skip to content

fix(tests): skip test_collision.py cases that require coal#538

Merged
petercorke merged 1 commit into
mainfrom
fix/test-collision-skip-markers
Jul 5, 2026
Merged

fix(tests): skip test_collision.py cases that require coal#538
petercorke merged 1 commit into
mainfrom
fix/test-collision-skip-markers

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

  • test_collision.py never used the skip_no_collision_checking marker that test_ELink.py/test_ERobot.py/test_Robot.py already rely on, so on Windows (coal has no PyPI wheels) every coal-dependent case hard-failed with ImportError instead of skipping — 52 failures per Windows job.
  • closest_point()/iscollided() call _ensure_coal(), which requires coal before any collision=False check runs — so TestCollisionFalseGuard and TestInitCoalDirect need the marker too, even though they're nominally testing a guard rather than real geometry.
  • TestToDict and plain construction/warning checks (test_box_warns, two TestEnvironmentGuards cases that mock the missing-coal path directly) never touch coal and are left unmarked — they should keep running everywhere.

Test plan

  • With coal installed: all 64 tests pass, unchanged
  • With coal/trimesh uninstalled (simulating Windows): 14 pass, 50 skip cleanly, 0 failures

🤖 Generated with Claude Code

test_collision.py never used the skip_no_collision_checking marker
that test_ELink.py/test_ERobot.py/test_Robot.py already rely on, so
on Windows (where coal has no wheels, see tech-debt.md) every
coal-dependent case hard-failed with ImportError instead of skipping.

closest_point()/iscollided() call _ensure_coal(), which requires coal
before any collision=False check runs — so TestCollisionFalseGuard and
TestInitCoalDirect need the marker too, even though they're nominally
testing a guard rather than real geometry. TestToDict and plain
construction/warning checks (test_box_warns, the two
non-coal-loading TestEnvironmentGuards cases) never touch coal and
are left unmarked.

Rehearsed both ways: with coal installed, all 64 tests pass
unchanged; with coal and trimesh uninstalled (simulating Windows),
14 pass and 50 skip cleanly, zero failures.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@petercorke petercorke merged commit fc51bc2 into main Jul 5, 2026
10 of 16 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant