mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-41876: Overload __repr__ for tkinter Font objects (GH-22450)
This commit is contained in:
parent
0cafcd3c56
commit
b4d895336a
4 changed files with 12 additions and 0 deletions
|
@ -101,6 +101,12 @@ class FontTest(AbstractTkTest, unittest.TestCase):
|
|||
self.assertTrue(name)
|
||||
self.assertIn(fontname, names)
|
||||
|
||||
def test_repr(self):
|
||||
self.assertEqual(
|
||||
repr(self.font), f'<tkinter.font.Font object {fontname!r}>'
|
||||
)
|
||||
|
||||
|
||||
tests_gui = (FontTest, )
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue