Commit 3c8043d8 authored by Terry Jan Reedy's avatar Terry Jan Reedy Committed by GitHub

bpo-33975: Avoid small type when running IDLE's htests. (GH-7944)

Import pyshell first in htest to call SetProcessDpiAwareness on Windows
before tkinter.Tk() is called for the htest. Apparently, 'root.destroy()'
undoes a previous 'root = Tk()'. Since IDLE unittests always destroy roots,
a unittest before an htest does not require anything more to work right.
Since part of the purpose of human-viewed tests is to determine that
widgets look right, it is important that they look the same for testing
as when running IDLE.
parent df748c20
...@@ -65,6 +65,7 @@ autocomplete_w.AutoCompleteWindow ...@@ -65,6 +65,7 @@ autocomplete_w.AutoCompleteWindow
outwin.OutputWindow (indirectly being tested with grep test) outwin.OutputWindow (indirectly being tested with grep test)
''' '''
import idlelib.pyshell # Set Windows DPI awareness before Tk().
from importlib import import_module from importlib import import_module
import tkinter as tk import tkinter as tk
from tkinter.ttk import Scrollbar from tkinter.ttk import Scrollbar
......
Avoid small type when running htests. Since part of the purpose of human-
viewed tests is to determine that widgets look right, it is important that
they look the same for testing as when running IDLE.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment