Skip to content

Commit e915db3

Browse files
authored
Use absolute imports in IDLE tests (GH-26581)
Relative imports do not work when running test_x as main.
1 parent 449e6f0 commit e915db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/idlelib/idle_test/test_colorizer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from test.support import requires
44
import unittest
55
from unittest import mock
6-
from .tkinter_testing_utils import run_in_tk_mainloop
6+
from idlelib.idle_test.tkinter_testing_utils import run_in_tk_mainloop
77

88
from functools import partial
99
import textwrap

0 commit comments

Comments
 (0)