https://github.com/python/cpython/commit/f1446d39221b8fc0eb8224d91a020d5c8bc1cd70
commit: f1446d39221b8fc0eb8224d91a020d5c8bc1cd70
branch: main
author: Zachary Ware <[email protected]>
committer: zware <[email protected]>
date: 2026-02-28T21:12:05Z
summary:
Destroy the turtle window after its doctests finish (GH-125294)
files:
M Doc/library/turtle.rst
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
index 234042c661f51a..20c659756fe1c1 100644
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -16,6 +16,9 @@
import os
os.remove("my_drawing.ps")
+ # Destroy the turtle window after tests are complete
+ # Imported via star import in testsetup
+ bye()
--------------
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]