https://github.com/python/cpython/commit/2821a0d87801c2f6311761211e52c00c5616e50e commit: 2821a0d87801c2f6311761211e52c00c5616e50e branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2026-09-28T18:45:38+03:00 summary:
[3.15] gh-157782: Fix test_ttk for Tk 9.1b1 and 9.0.5 (GH-157783) (#157823) Co-authored-by: Serhiy Storchaka <[email protected]> files: M Lib/test/test_ttk/test_widgets.py diff --git a/Lib/test/test_ttk/test_widgets.py b/Lib/test/test_ttk/test_widgets.py index 53bcd5ed2aab1b0..71b9d1b7f47d924 100644 --- a/Lib/test/test_ttk/test_widgets.py +++ b/Lib/test/test_ttk/test_widgets.py @@ -220,6 +220,13 @@ class LabelTest(AbstractLabelTest, unittest.TestCase): def create(self, **kwargs): return ttk.Label(self.root, **kwargs) + def test_configure_anchor(self): + widget = self.create() + values = ('n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw', 'center') + if get_tk_patchlevel(self.root) >= (9, 0, 5): + values += ('',) + self.checkEnumParam(widget, 'anchor', *values) + test_configure_justify = StandardOptionsTests.test_configure_justify @@ -353,6 +360,7 @@ class EntryTest(AbstractWidgetTest, unittest.TestCase): def setUp(self): super().setUp() self.entry = self.create() + self._allow_empty_justify = get_tk_patchlevel(self.root) >= (9, 0, 5) def create(self, **kwargs): return ttk.Entry(self.root, **kwargs) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
