diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-10-13 19:12:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 18:12:48 +0200 |
commit | f59ed3c310a7ceebf2a56a84ea969a7f75d95b64 (patch) | |
tree | 4756eaa88c988fe35f1742d1907e819095d8b5b0 /Lib/test/test_tk.py | |
parent | 676201a59f90caace606d11d4172aa74c1cd4992 (diff) | |
download | cpython-git-f59ed3c310a7ceebf2a56a84ea969a7f75d95b64.tar.gz |
bpo-45229: Make tkinter tests discoverable (GH-28637)
Diffstat (limited to 'Lib/test/test_tk.py')
-rw-r--r-- | Lib/test/test_tk.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py index 59842a5e25..69cc2322cd 100644 --- a/Lib/test/test_tk.py +++ b/Lib/test/test_tk.py @@ -6,11 +6,9 @@ import_helper.import_module('_tkinter') # 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() |