]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use absolute imports in IDLE tests (GH-26581)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Jun 2021 22:15:31 +0000 (15:15 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Jun 2021 22:15:31 +0000 (15:15 -0700)
Relative imports do not work when running test_x as main.
(cherry picked from commit e915db3e9e512249a6f494c0b331db2d021e1f56)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/idle_test/test_colorizer.py

index b0b120e75a155376204be76b38c96dfea6533486..308bc389384d33dc8d4bb473b06dc5b5b127c0b6 100644 (file)
@@ -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