https://github.com/python/cpython/commit/90b33e61abc6a63c9f1b4c2188671b301eb4d501
commit: 90b33e61abc6a63c9f1b4c2188671b301eb4d501
branch: 3.13
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-07-15T14:53:13Z
summary:

[3.13] gh-128846: Fix test_configure_custom_copy for the aqua theme with Tk 9 
(GH-153611)

Co-Authored-By: Claude Opus 4.8 <[email protected]>

files:
M Lib/test/test_ttk/test_style.py

diff --git a/Lib/test/test_ttk/test_style.py b/Lib/test/test_ttk/test_style.py
index 56d8a5931fdfa5..41f3c2a9b94ed4 100644
--- a/Lib/test/test_ttk/test_style.py
+++ b/Lib/test/test_ttk/test_style.py
@@ -161,9 +161,16 @@ def test_configure_custom_copy(self):
                     newname = f'C.{name}'
                     self.assertEqual(style.configure(newname), None)
                     style.configure(newname, **default)
-                    self.assertEqual(style.configure(newname), default)
+                    # gh-128846: the aqua theme with Tk 9 reports an unset
+                    # option as an empty tuple, while the copy reports it as an
+                    # empty string.
+                    def norm(value):
+                        return '' if value == () else value
+                    self.assertEqual(style.configure(newname),
+                                     {k: norm(v) for k, v in default.items()})
                     for key, value in default.items():
-                        self.assertEqual(style.configure(newname, key), value)
+                        self.assertEqual(style.configure(newname, key),
+                                         norm(value))
 
 
     def test_map_custom_copy(self):

_______________________________________________
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]

Reply via email to