From 51eb7b1c630da3a21b271089516cfb36b35eba64 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 5f04cbc42bf374..4f3549d9a8c0a3 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 ea5e21f1da48d0..b1fe73adda0d97 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 67c9b327e7bfae4c385da199b57b65b8c838729b Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 11 Oct 2024 10:46:07 +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 b1fe73adda0d97..ea5e21f1da48d0 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