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 ned.deily
Recipients amaury.forgeotdarc, donmez, gpolo, ned.deily
Date 2010-09-20.02:25:39
SpamBayes Score 1.6429048e-07
Marked as misclassified No
Message-id <1284949543.82.0.527110581786.issue9899@psf.upfronthosting.co.za>
In-reply-to
Content
r84865 for Issue1730136 introduced a new tkinter test, test_font.  As it stands, the test fails on OS X 10.6 when Python is built with Aqua Tk, at least with either the Apple-supplied 8.5 or the ActiveState 8.5 (I haven't tried with any of the Aqua 8.4 version).  The main problem is that font "system" is not a font name returned by the interface used by tkinter/font.py:

$ /usr/bin/wish8.5
% font names
systemPushButtonFont systemMenuItemFont systemApplicationFont systemSystemFont systemMenuItemMarkFont TkMenuFont TkDefaultFont systemSmallEmphasizedSystemFont systemDetailEmphasizedSystemFont systemMiniSystemFont TkHeadingFont TkTooltipFont systemUtilityWindowTitleFont systemViewsFont systemSmallSystemFont systemMenuTitleFont systemEmphasizedSystemFont TkTextFont systemDetailSystemFont TkCaptionFont systemLabelFont systemAlertHeaderFont systemMenuItemCmdKeyFont TkSmallCaptionFont TkFixedFont systemWindowTitleFont systemToolbarFont TkIconFont
% font actual system
-family {Lucida Grande} -size 13 -weight normal -slant roman -underline 0 -overstrike 0

Based on the man page here (http://www.tcl.tk/man/tcl8.5/TkCmd/font.htm#M31) it appears any of the "standard" font names would be a better choice, like TkDefaultFont.

Also, test_font should include the standard tkinter.test setUp and setDown functions so that the test can be run by itself.

The attached patch should fix both issues.
History
Date User Action Args
2010-09-20 02:25:44ned.deilysetrecipients: + ned.deily, amaury.forgeotdarc, donmez, gpolo
2010-09-20 02:25:43ned.deilysetmessageid: <1284949543.82.0.527110581786.issue9899@psf.upfronthosting.co.za>
2010-09-20 02:25:41ned.deilylinkissue9899 messages
2010-09-20 02:25:40ned.deilycreate