Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f7ac4fe52a278d512e263cb1711dd95c06dc964f authored by Ned Deily on 17 October 2017, 03:50:50 UTC
Bump to 3.7.0a2
Tip revision: f7ac4fe
test_tk.py
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')

from tkinter.test import runtktests

def test_main():
    support.run_unittest(
            *runtktests.get_tests(text=False, packages=['test_tkinter']))

if __name__ == '__main__':
    test_main()
back to top