From 56d01add3295775be76de5d4c0e81669d6c30a4a Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 11 Oct 2024 00:53:45 +0100 Subject: [PATCH 1/2] Add some doctest cleanups for `turtle` and `configparser` (GH-125288) (cherry picked from commit a726ce73ca69b3a5ccc2cbe23061070e686b1150) Co-authored-by: Alex Waygood Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --- Doc/library/configparser.rst | 1 + Doc/library/turtle.rst | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index cf13de4116fe3d..8e52689211895a 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 afda3685d606bb..ffb9c11794358a 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 From 7e87f4f3881f6698a230ac5b4e21378ea4e3d9c4 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 11 Oct 2024 10:43:21 +0100 Subject: [PATCH 2/2] revert changes to `turtle.rst` --- Doc/library/turtle.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index ffb9c11794358a..afda3685d606bb 100644 --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -14,11 +14,6 @@ from turtle import * turtle = Turtle() -.. testcleanup:: - - import os - os.remove("my_drawing.ps") - -------------- Introduction