From: Alex Waygood Date: Thu, 10 Oct 2024 23:53:45 +0000 (+0100) Subject: Add some doctest cleanups for `turtle` and `configparser` (#125288) X-Git-Tag: v3.14.0a1~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a726ce73ca69b3a5ccc2cbe23061070e686b1150;p=thirdparty%2FPython%2Fcpython.git Add some doctest cleanups for `turtle` and `configparser` (#125288) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --- diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index b5c18bbccffb..3aad6f7b5d2d 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -54,6 +54,7 @@ can be customized by end users easily. import os os.remove("example.ini") + os.remove("override.ini") Quick Start diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index da801d4dc1f5..efa4b6f8f1d3 100644 --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -14,6 +14,11 @@ from turtle import * turtle = Turtle() +.. testcleanup:: + + import os + os.remove("my_drawing.ps") + -------------- Introduction