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/tkinter/test/test_tkinter/test_font.py | |
parent | 676201a59f90caace606d11d4172aa74c1cd4992 (diff) | |
download | cpython-git-f59ed3c310a7ceebf2a56a84ea969a7f75d95b64.tar.gz |
bpo-45229: Make tkinter tests discoverable (GH-28637)
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_font.py')
-rw-r--r-- | Lib/tkinter/test/test_tkinter/test_font.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_font.py b/Lib/tkinter/test/test_tkinter/test_font.py index 91f9974117..058c53a902 100644 --- a/Lib/tkinter/test/test_tkinter/test_font.py +++ b/Lib/tkinter/test/test_tkinter/test_font.py @@ -1,7 +1,7 @@ import unittest import tkinter from tkinter import font -from test.support import requires, run_unittest, gc_collect, ALWAYS_EQ +from test.support import requires, gc_collect, ALWAYS_EQ from tkinter.test.support import AbstractTkTest, AbstractDefaultRootTest requires('gui') @@ -159,7 +159,5 @@ class DefaultRootTest(AbstractDefaultRootTest, unittest.TestCase): self.assertRaises(RuntimeError, font.nametofont, fontname) -tests_gui = (FontTest, DefaultRootTest) - if __name__ == "__main__": - run_unittest(*tests_gui) + unittest.main() |