Skip to content

Commit

Permalink
Add some doctest cleanups for turtle and configparser
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Oct 10, 2024
1 parent dd0ee20 commit 032c152
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ can be customized by end users easily.

import os
os.remove("example.ini")
os.remove("override.ini")


Quick Start
Expand Down
6 changes: 6 additions & 0 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@

.. testsetup:: default

import turtle as turtle_module
from turtle import *
turtle = Turtle()

.. testcleanup::

import os
os.remove("my_drawing.ps")

--------------

Introduction
Expand Down

0 comments on commit 032c152

Please sign in to comment.