diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-10-13 16:12:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 16:12:48 (GMT) |
commit | f59ed3c310a7ceebf2a56a84ea969a7f75d95b64 (patch) | |
tree | 4756eaa88c988fe35f1742d1907e819095d8b5b0 /Lib/tkinter/test/test_tkinter/test_simpledialog.py | |
parent | 676201a59f90caace606d11d4172aa74c1cd4992 (diff) | |
download | cpython-f59ed3c310a7ceebf2a56a84ea969a7f75d95b64.zip cpython-f59ed3c310a7ceebf2a56a84ea969a7f75d95b64.tar.gz cpython-f59ed3c310a7ceebf2a56a84ea969a7f75d95b64.tar.bz2 |
bpo-45229: Make tkinter tests discoverable (GH-28637)
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_simpledialog.py')
-rw-r--r-- | Lib/tkinter/test/test_tkinter/test_simpledialog.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_simpledialog.py b/Lib/tkinter/test/test_tkinter/test_simpledialog.py index b64b854..18cd271 100644 --- a/Lib/tkinter/test/test_tkinter/test_simpledialog.py +++ b/Lib/tkinter/test/test_tkinter/test_simpledialog.py @@ -1,6 +1,6 @@ import unittest import tkinter -from test.support import requires, run_unittest, swap_attr +from test.support import requires, swap_attr from tkinter.test.support import AbstractDefaultRootTest from tkinter.simpledialog import Dialog, askinteger @@ -31,7 +31,5 @@ class DefaultRootTest(AbstractDefaultRootTest, unittest.TestCase): self.assertRaises(RuntimeError, askinteger, "Go To Line", "Line number") -tests_gui = (DefaultRootTest,) - if __name__ == "__main__": - run_unittest(*tests_gui) + unittest.main() |