cpython/Lib/test/test_tk.py
Łukasz Langa 5d74713093
[3.9] bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28929)
(cherry picked from commit f59ed3c310)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-13 19:08:44 +02:00

13 lines
309 B
Python

from test import support
# Skip test if _tkinter wasn't built.
support.import_module('_tkinter')
# Skip test if tk cannot be initialized.
support.requires('gui')
def load_tests(loader, tests, pattern):
return loader.discover('tkinter.test.test_tkinter')
if __name__ == '__main__':
unittest.main()