Message361700
======================================================================
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? |
|
Date |
User |
Action |
Args |
2020-02-10 15:44:03 | vstinner | set | recipients:
+ vstinner, terry.reedy, taleinat, cheryl.sabella |
2020-02-10 15:44:03 | vstinner | set | messageid: <1581349443.21.0.804865306435.issue39600@roundup.psfhosted.org> |
2020-02-10 15:44:03 | vstinner | link | issue39600 messages |
2020-02-10 15:44:03 | vstinner | create | |
|