[3.9] bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28929)

(cherry picked from commit f59ed3c310)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Łukasz Langa 2021-10-13 19:08:44 +02:00 committed by GitHub
parent 5638618845
commit 5d74713093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 494 additions and 598 deletions

View file

@ -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
@ -19,7 +19,5 @@ def test_askinteger(self):
self.assertRaises(RuntimeError, askinteger, "Go To Line", "Line number")
tests_gui = (DefaultRootTest,)
if __name__ == "__main__":
run_unittest(*tests_gui)
unittest.main()