]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Destroy the turtle window after its doctests finish (GH-125294)
authorZachary Ware <zach@python.org>
Sat, 28 Feb 2026 21:12:05 +0000 (15:12 -0600)
committerGitHub <noreply@github.com>
Sat, 28 Feb 2026 21:12:05 +0000 (21:12 +0000)
Doc/library/turtle.rst

index 234042c661f51aef3e311dce65645aab4ee69592..20c659756fe1c19a71ab6faa9ec4db7569871300 100644 (file)
@@ -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()
 
 --------------