Skip to content

Commit b15245a

Browse files
gh-143990: Fix the 3.15 backport of GH-153267
Drop the assertion in test_create_from_named_font that explicit options override the copied font settings: that behavior was added by GH-152025 and is not in 3.15, where options are ignored when a font is specified. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 62f59ea commit b15245a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_tkinter/test_font.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def test_create_from_named_font(self):
5757
self.assertEqual(f.cget('size'), sizetype(-20))
5858
self.assertEqual(f.actual('family'), named.actual('family'))
5959
self.assertEqual(f.actual('weight'), 'bold')
60-
# Explicit options still override the copied settings.
61-
f = font.Font(root=self.root, font=named, size=30)
62-
self.assertEqual(f.cget('size'), sizetype(30))
60+
# (Options overriding the given font are only supported since 3.16.)
6361

6462
def test_create_from_description(self):
6563
# gh-143990: a font created from a font description is resolved via

0 commit comments

Comments
 (0)