Import turtle lazily so tests run without a Tk library #29

Closed
opened 2026-10-13 10:00:37 +02:00 by Tirsvad · 0 comments
Owner

CI on the runner failed at test collection because import turtle needs libtk8.6. Import turtle when TurtleScreen is created, so importing the program and running its tests need no Tk library. Found after the first merge of this milestone.

Phase: MIL-003

CI on the runner failed at test collection because `import turtle` needs `libtk8.6`. Import `turtle` when `TurtleScreen` is created, so importing the program and running its tests need no Tk library. Found after the first merge of this milestone. Phase: MIL-003
Tirsvad added this to the MIL-003 Turtle game and entry point milestone 2026-10-13 10:00:37 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/025-us-states-game#29