diff options
Diffstat (limited to 'Lib/tkinter/test/test_ttk/test_style.py')
-rw-r--r-- | Lib/tkinter/test/test_ttk/test_style.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/tkinter/test/test_ttk/test_style.py b/Lib/tkinter/test/test_ttk/test_style.py index 2466c73..0da0e5d 100644 --- a/Lib/tkinter/test/test_ttk/test_style.py +++ b/Lib/tkinter/test/test_ttk/test_style.py @@ -25,7 +25,8 @@ class StyleTest(unittest.TestCase): style = self.style style.map('TButton', background=[('active', 'background', 'blue')]) self.assertEqual(style.map('TButton', 'background'), - [('active', 'background', 'blue')]) + [('active', 'background', 'blue')] if style.tk.wantobjects() else + [('active background', 'blue')]) self.assertIsInstance(style.map('TButton'), dict) |