mirror of
https://github.com/python/cpython.git
synced 2024-12-25 09:44:37 +08:00
18 lines
405 B
Python
18 lines
405 B
Python
import os
|
|
from test import support
|
|
|
|
# Skip this test if _tkinter does not exist.
|
|
support.import_module('_tkinter')
|
|
|
|
# Make sure tkinter._fix runs to set up the environment
|
|
support.import_fresh_module('tkinter')
|
|
|
|
from tkinter.test import runtktests
|
|
|
|
def test_main():
|
|
support.run_unittest(
|
|
*runtktests.get_tests(gui=False, packages=['test_ttk']))
|
|
|
|
if __name__ == '__main__':
|
|
test_main()
|