This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients cheryl.sabella, taleinat, terry.reedy, vstinner
Date 2020-02-10.15:44:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581349443.21.0.804865306435.issue39600@roundup.psfhosted.org>
In-reply-to
Content
======================================================================
FAIL: test_fontlist_key (idlelib.idle_test.test_configdialog.FontPageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.7/idlelib/idle_test/test_configdialog.py", line 104, in test_fontlist_key
    self.assertNotEqual(down_font, font)
AssertionError: 'Cantarell' == 'Cantarell'

Example:
---
import tkinter.ttk
import tkinter.font
frame = tkinter.ttk.Frame()
families=sorted(tkinter.font.families(frame))
for family in families:
    print(family)
---

Truncated output on my Fedora 31:
---
Abyssinica SIL
Android Emoji
AnjaliOldLipi
Bitstream Vera Sans
C059
Caladea
Cantarell
Cantarell
Cantarell
Cantarell
(...)
Comfortaa
Comfortaa
(...))
DejaVu Sans
DejaVu Sans
DejaVu Sans
(...)
Source Han Serif CN
Source Han Serif CN
Source Han Serif CN
Source Han Serif CN
Source Han Serif CN
Source Han Serif CN
Source Han Serif TW
Source Han Serif TW
Source Han Serif TW
Source Han Serif TW
Source Han Serif TW
Source Han Serif TW
(...)
---

I'm not sure if it's an issue in the unit test or an issue with the widget itself. Does it make sense to display the same font family name twice?
History
Date User Action Args
2020-02-10 15:44:03vstinnersetrecipients: + vstinner, terry.reedy, taleinat, cheryl.sabella
2020-02-10 15:44:03vstinnersetmessageid: <1581349443.21.0.804865306435.issue39600@roundup.psfhosted.org>
2020-02-10 15:44:03vstinnerlinkissue39600 messages
2020-02-10 15:44:03vstinnercreate