2022-06-22 17:23:37 -03:00
|
|
|
import os.path
|
|
|
|
import unittest
|
|
|
|
|
2023-05-30 00:53:55 -03:00
|
|
|
from test.support import (
|
|
|
|
check_sanitizer,
|
|
|
|
import_helper,
|
|
|
|
load_package_tests,
|
|
|
|
requires,
|
|
|
|
)
|
2022-06-22 17:23:37 -03:00
|
|
|
|
2023-05-30 00:53:55 -03:00
|
|
|
|
|
|
|
if check_sanitizer(address=True, memory=True):
|
2023-08-22 10:52:32 -03:00
|
|
|
# See gh-90791 for details
|
2022-06-22 17:23:37 -03:00
|
|
|
raise unittest.SkipTest("Tests involving libX11 can SEGFAULT on ASAN/MSAN builds")
|
|
|
|
|
|
|
|
# Skip test if _tkinter wasn't built.
|
|
|
|
import_helper.import_module('_tkinter')
|
|
|
|
|
|
|
|
# Skip test if tk cannot be initialized.
|
2023-05-30 00:53:55 -03:00
|
|
|
requires('gui')
|
2022-06-22 17:23:37 -03:00
|
|
|
|
|
|
|
|
|
|
|
def load_tests(*args):
|
2023-05-30 00:53:55 -03:00
|
|
|
return load_package_tests(os.path.dirname(__file__), *args)
|