From: Guilherme Polo Date: Mon, 2 Feb 2009 20:23:29 +0000 (+0000) Subject: Restore the previous geometry before leaving the test X-Git-Tag: v2.7a1~2141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b64c989efc3c6e4885a17b9a1bad7ad7ac37744a;p=thirdparty%2FPython%2Fcpython.git Restore the previous geometry before leaving the test --- diff --git a/Lib/lib-tk/test/test_ttk/test_extensions.py b/Lib/lib-tk/test/test_ttk/test_extensions.py index 5a73a6f5de7e..413d2255d2b5 100644 --- a/Lib/lib-tk/test/test_ttk/test_extensions.py +++ b/Lib/lib-tk/test/test_ttk/test_extensions.py @@ -167,14 +167,15 @@ class LabeledScaleTest(unittest.TestCase): x.update() width, height = x.master.winfo_width(), x.master.winfo_height() - width, height = width * 2, height * 2 + width_new, height_new = width * 2, height * 2 x.value = 3 x.update() - x.master.wm_geometry("%dx%d" % (width, height)) + x.master.wm_geometry("%dx%d" % (width_new, height_new)) self.failUnlessEqual(int(x.label.place_info()['x']), x.scale.coords()[0]) + # Reset geometry x.master.wm_geometry("%dx%d" % (width, height)) x.destroy()