|
3 | 3 | import os |
4 | 4 | from test.support import requires |
5 | 5 |
|
6 | | -from tkinter.test.support import tcl_version, requires_tcl, widget_eq |
| 6 | +from tkinter.test.support import (tcl_version, requires_tcl, |
| 7 | + get_tk_patchlevel, widget_eq) |
7 | 8 | from tkinter.test.widget_tests import ( |
8 | 9 | add_standard_options, noconv, pixels_round, |
9 | 10 | AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests) |
@@ -539,7 +540,7 @@ def test_insertunfocussed(self): |
539 | 540 | def test_selectborderwidth(self): |
540 | 541 | widget = self.create() |
541 | 542 | self.checkPixelsParam(widget, 'selectborderwidth', |
542 | | - 1.3, 2.6, -2, '10p', conv=False, |
| 543 | + 1.3, 2.6, -2, '10p', conv=noconv, |
543 | 544 | keep_orig=tcl_version >= (8, 5)) |
544 | 545 |
|
545 | 546 | def test_spacing1(self): |
@@ -580,7 +581,11 @@ def test_state(self): |
580 | 581 |
|
581 | 582 | def test_tabs(self): |
582 | 583 | widget = self.create() |
583 | | - self.checkParam(widget, 'tabs', (10.2, 20.7, '1i', '2i')) |
| 584 | + if get_tk_patchlevel() < (8, 5, 11): |
| 585 | + self.checkParam(widget, 'tabs', (10.2, 20.7, '1i', '2i'), |
| 586 | + expected=('10.2', '20.7', '1i', '2i')) |
| 587 | + else: |
| 588 | + self.checkParam(widget, 'tabs', (10.2, 20.7, '1i', '2i')) |
584 | 589 | self.checkParam(widget, 'tabs', '10.2 20.7 1i 2i', |
585 | 590 | expected=('10.2', '20.7', '1i', '2i')) |
586 | 591 | self.checkParam(widget, 'tabs', '2c left 4c 6c center', |
|
0 commit comments