mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
GH-71383: IDLE - Document testing subsets of modules (#104463)
This commit is contained in:
parent
7d2deafb73
commit
080a596152
3 changed files with 29 additions and 20 deletions
|
|
@ -5,12 +5,8 @@ from test.support import check_sanitizer
|
|||
if check_sanitizer(address=True, memory=True):
|
||||
raise unittest.SkipTest("Tests involving libX11 can SEGFAULT on ASAN/MSAN builds")
|
||||
|
||||
# Skip test_idle if _tkinter wasn't built, if tkinter is missing,
|
||||
# if tcl/tk is not the 8.5+ needed for ttk widgets,
|
||||
# or if idlelib is missing (not installed).
|
||||
# Skip test_idle if _tkinter, tkinter, or idlelib are missing.
|
||||
tk = import_module('tkinter') # Also imports _tkinter.
|
||||
if tk.TkVersion < 8.5:
|
||||
raise unittest.SkipTest("IDLE requires tk 8.5 or later.")
|
||||
idlelib = import_module('idlelib')
|
||||
|
||||
# Before importing and executing more of idlelib,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue