33import re
44import unittest
55import unittest .mock
6- import tempfile
76import sys
7+ import tempfile
88from contextlib import contextmanager
99from test import support
1010from test .support import import_helper
@@ -572,7 +572,6 @@ def test_no_animation_calls_update_at_exit(self):
572572
573573class TestTurtle (unittest .TestCase ):
574574 def test_begin_end_fill (self ):
575- """begin_fill and end_fill counter each other."""
576575 with patch_screen ():
577576 t = turtle .Turtle ()
578577
@@ -583,7 +582,7 @@ def test_begin_end_fill(self):
583582 self .assertFalse (t .filling ())
584583
585584 def test_fill (self ):
586- """ The context manager behaves like begin_ and end_ fill."""
585+ # The context manager behaves like begin_fill and end_fill.
587586 with patch_screen ():
588587 t = turtle .Turtle ()
589588
@@ -593,7 +592,7 @@ def test_fill(self):
593592 self .assertFalse (t .filling ())
594593
595594 def test_fill_resets_after_exception (self ):
596- """ The context manager cleans up correctly after exceptions."""
595+ # The context manager cleans up correctly after exceptions.
597596 with patch_screen ():
598597 t = turtle .Turtle ()
599598 try :
@@ -604,7 +603,7 @@ def test_fill_resets_after_exception(self):
604603 self .assertFalse (t .filling ())
605604
606605 def test_fill_context_when_filling (self ):
607- """ The context manager works even when the turtle is already filling."""
606+ # The context manager works even when the turtle is already filling.
608607 with patch_screen ():
609608 t = turtle .Turtle ()
610609
@@ -615,7 +614,6 @@ def test_fill_context_when_filling(self):
615614 self .assertFalse (t .filling ())
616615
617616 def test_begin_end_poly (self ):
618- """begin_fill and end_poly counter each other."""
619617 with patch_screen ():
620618 t = turtle .Turtle ()
621619
@@ -626,7 +624,7 @@ def test_begin_end_poly(self):
626624 self .assertFalse (t ._creatingPoly )
627625
628626 def test_poly (self ):
629- """ The context manager behaves like begin_ and end_ poly."""
627+ # The context manager behaves like begin_poly and end_poly.
630628 with patch_screen ():
631629 t = turtle .Turtle ()
632630
@@ -636,7 +634,7 @@ def test_poly(self):
636634 self .assertFalse (t ._creatingPoly )
637635
638636 def test_poly_resets_after_exception (self ):
639- """ The context manager cleans up correctly after exceptions."""
637+ # The context manager cleans up correctly after exceptions.
640638 with patch_screen ():
641639 t = turtle .Turtle ()
642640 try :
@@ -647,8 +645,7 @@ def test_poly_resets_after_exception(self):
647645 self .assertFalse (t ._creatingPoly )
648646
649647 def test_poly_context_when_creating_poly (self ):
650- """The context manager works when the turtle is already creating poly.
651- """
648+ # The context manager works when the turtle is already creating poly.
652649 with patch_screen ():
653650 t = turtle .Turtle ()
654651
0 commit comments