Skip to content

Commit 0a6899c

Browse files
committed
Fix turtle's mainloop mock
1 parent 613a899 commit 0a6899c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_turtle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def setUp(test):
8282

8383
# mock mainloop in order doenst be necessary the tester close the window
8484
# on mainloop() and exitonclick()
85-
turtle.TurtleScreenBase.mainloop = turtle.mainloop = lambda self: None
85+
turtle.TurtleScreenBase.mainloop = lambda self: None
86+
turtle.mainloop = lambda: None
8687

8788

8889
def load_tests(loader, tests, ignore):

0 commit comments

Comments
 (0)