Issue #19085: Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
Issue #19085: Fix running test_ttk_textonly on displayless host.
Issue #19397: test_pydoc now works with -S (help not added to builtins).
Patch by Serhiy Storchaka and Vajrasky Kok.