mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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
|
@ -2,7 +2,7 @@ import sys
|
|||
import unittest
|
||||
import tkinter
|
||||
from tkinter import ttk
|
||||
from test.support import requires, run_unittest, gc_collect
|
||||
from test.support import requires, gc_collect
|
||||
from tkinter.test.support import AbstractTkTest, AbstractDefaultRootTest
|
||||
|
||||
requires('gui')
|
||||
|
@ -308,7 +308,5 @@ class DefaultRootTest(AbstractDefaultRootTest, unittest.TestCase):
|
|||
self._test_widget(ttk.LabeledScale)
|
||||
|
||||
|
||||
tests_gui = (LabeledScaleTest, OptionMenuTest, DefaultRootTest)
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_unittest(*tests_gui)
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue