gh-97527: IDLE: protect macosx Tk() call when no GUI (#97530)
Only call tkinter.tk and its follow-up code in _init_tk_type when requires('gui')
does not raise. This function can be called as an unintended side-effect of
calling other idlelib code as part of tests on macOS without a GUI enabled. T
Terry Jan Reedy committed
9704f8da333a51da32318f16106d45abb20fab76
Parent: db39050
Committed by GitHub <[email protected]>
on 9/24/2022, 9:38:58 PM