]> granicus.if.org Git - python/commitdiff
Use more precise Tcl version checks in tests.
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 23 Apr 2015 07:57:15 +0000 (10:57 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 23 Apr 2015 07:57:15 +0000 (10:57 +0300)
Lib/lib-tk/test/test_tkinter/test_widgets.py

index efb9a05f8149252406a7c9be6ef6683d38e83eee..1916e349b24ffcbe94f4b9b4a5f041460d13fe45 100644 (file)
@@ -1037,7 +1037,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
     def test_paneconfigure_height(self):
         p, b, c = self.create2()
         self.check_paneconfigure(p, b, 'height', 10, 10,
-                                 stringify=tcl_version < (8, 5))
+                                 stringify=get_tk_patchlevel() < (8, 5, 11))
         self.check_paneconfigure_bad(p, b, 'height',
                                      'bad screen distance "badValue"')
 
@@ -1085,7 +1085,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
     def test_paneconfigure_width(self):
         p, b, c = self.create2()
         self.check_paneconfigure(p, b, 'width', 10, 10,
-                                 stringify=tcl_version < (8, 5))
+                                 stringify=get_tk_patchlevel() < (8, 5, 11))
         self.check_paneconfigure_bad(p, b, 'width',
                                      'bad screen distance "badValue"')