mirror of
https://github.com/python/cpython.git
synced 2025-11-02 06:31:29 +00:00
bpo-45229: Make tkinter tests discoverable (GH-28637)
This commit is contained in:
parent
676201a59f
commit
f59ed3c310
18 changed files with 496 additions and 604 deletions
|
|
@ -6,11 +6,9 @@
|
|||
# Skip test if tk cannot be initialized.
|
||||
support.requires('gui')
|
||||
|
||||
from tkinter.test import runtktests
|
||||
def load_tests(loader, tests, pattern):
|
||||
return loader.discover('tkinter.test.test_tkinter')
|
||||
|
||||
def test_main():
|
||||
support.run_unittest(
|
||||
*runtktests.get_tests(text=False, packages=['test_tkinter']))
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue