From: Serhiy Storchaka Date: Thu, 23 Apr 2015 07:57:15 +0000 (+0300) Subject: Use more precise Tcl version checks in tests. X-Git-Tag: v2.7.10rc1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dacd7d0cd6c75145dac810b886404f727a4a4a28;p=thirdparty%2FPython%2Fcpython.git Use more precise Tcl version checks in tests. --- diff --git a/Lib/lib-tk/test/test_tkinter/test_widgets.py b/Lib/lib-tk/test/test_tkinter/test_widgets.py index efb9a05f8149..1916e349b24f 100644 --- a/Lib/lib-tk/test/test_tkinter/test_widgets.py +++ b/Lib/lib-tk/test/test_tkinter/test_widgets.py @@ -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"')