|  | 
| 6 | 6 | 
 | 
| 7 | 7 | from test.test_ttk_textonly import MockTclObj | 
| 8 | 8 | from test.test_tkinter.support import ( | 
| 9 |  | - | 
| 10 | 9 |     AbstractTkTest, requires_tk, tk_version, get_tk_patchlevel, | 
| 11 | 10 |     simulate_mouse_click, AbstractDefaultRootTest) | 
| 12 | 11 | from test.test_tkinter.widget_tests import (add_configure_tests, | 
| @@ -1011,14 +1010,14 @@ def create(self, **kwargs): | 
| 1011 | 1010 | 
 | 
| 1012 | 1011 |     def test_configure_height(self): | 
| 1013 | 1012 |         widget = self.create() | 
| 1014 |  | -        if tk_version < (8, 15): | 
|  | 1013 | +        if get_tk_patchlevel(self.root) < (8, 6, 15): | 
| 1015 | 1014 |             self.checkIntegerParam(widget, 'height', 402, -402, 0) | 
| 1016 | 1015 |         else: | 
| 1017 | 1016 |             self.checkPixelsParam(widget, 'height', '10c', 402, -402, 0) | 
| 1018 | 1017 | 
 | 
| 1019 | 1018 |     def test_configure_width(self): | 
| 1020 | 1019 |         widget = self.create() | 
| 1021 |  | -        if tk_version < (8, 15): | 
|  | 1020 | +        if get_tk_patchlevel(self.root) < (8, 6, 15): | 
| 1022 | 1021 |             self.checkIntegerParam(widget, 'width', 402, -402, 0) | 
| 1023 | 1022 |         else: | 
| 1024 | 1023 |             self.checkPixelsParam(widget, 'width', '10c', 402, -402, 0) | 
|  | 
0 commit comments