From: Terry Jan Reedy Date: Mon, 7 Jun 2021 21:56:34 +0000 (-0400) Subject: Use absolute imports in IDLE tests (GH-26581) X-Git-Tag: v3.11.0a1~923 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e915db3e9e512249a6f494c0b331db2d021e1f56;p=thirdparty%2FPython%2Fcpython.git Use absolute imports in IDLE tests (GH-26581) Relative imports do not work when running test_x as main. --- diff --git a/Lib/idlelib/idle_test/test_colorizer.py b/Lib/idlelib/idle_test/test_colorizer.py index b0b120e75a15..308bc389384d 100644 --- a/Lib/idlelib/idle_test/test_colorizer.py +++ b/Lib/idlelib/idle_test/test_colorizer.py @@ -3,7 +3,7 @@ from idlelib import colorizer from test.support import requires import unittest from unittest import mock -from .tkinter_testing_utils import run_in_tk_mainloop +from idlelib.idle_test.tkinter_testing_utils import run_in_tk_mainloop from functools import partial import textwrap