2022-01-25 19:14:03 -04:00
|
|
|
import unittest
|
2009-04-01 08:28:47 -03:00
|
|
|
from test import support
|
2020-07-06 06:15:08 -03:00
|
|
|
from test.support import import_helper
|
2022-01-25 19:14:03 -04:00
|
|
|
from test.support import check_sanitizer
|
|
|
|
|
|
|
|
if check_sanitizer(address=True, memory=True):
|
|
|
|
raise unittest.SkipTest("Tests involvin libX11 can SEGFAULT on ASAN/MSAN builds")
|
|
|
|
|
2009-04-01 08:28:47 -03:00
|
|
|
# Skip test if _tkinter wasn't built.
|
2020-07-06 06:15:08 -03:00
|
|
|
import_helper.import_module('_tkinter')
|
2009-04-01 08:28:47 -03:00
|
|
|
|
2011-07-04 01:56:48 -03:00
|
|
|
# Skip test if tk cannot be initialized.
|
2014-05-02 12:51:07 -03:00
|
|
|
support.requires('gui')
|
2009-02-09 16:40:42 -04:00
|
|
|
|
2021-10-13 13:12:48 -03:00
|
|
|
def load_tests(loader, tests, pattern):
|
|
|
|
return loader.discover('tkinter.test.test_tkinter')
|
2009-02-09 16:40:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2021-10-13 13:12:48 -03:00
|
|
|
unittest.main()
|