diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-04 21:05:37 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-04 21:05:37 (GMT) |
commit | 2028e0131396258d7aa5052304863e7ca5af6ab9 (patch) | |
tree | b3503485e8024f27710b8ad6c7aeea478a6c29cb /Lib/tkinter/test/test_tkinter/test_widgets.py | |
parent | 8d8599ce0cc6b7ec2b7e1c43fc7f59b103ee7fe9 (diff) | |
download | cpython-2028e0131396258d7aa5052304863e7ca5af6ab9.zip cpython-2028e0131396258d7aa5052304863e7ca5af6ab9.tar.gz cpython-2028e0131396258d7aa5052304863e7ca5af6ab9.tar.bz2 |
Issue #19085: Fix running test_ttk_textonly on displayless host.
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_widgets.py')
-rw-r--r-- | Lib/tkinter/test/test_tkinter/test_widgets.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py index 1ed306a..8a768ed 100644 --- a/Lib/tkinter/test/test_tkinter/test_widgets.py +++ b/Lib/tkinter/test/test_tkinter/test_widgets.py @@ -4,7 +4,8 @@ import os from test.support import requires from tkinter.test.support import tcl_version, requires_tcl, widget_eq -from tkinter.test.widget_tests import (add_standard_options, noconv, +from tkinter.test.widget_tests import ( + add_standard_options, noconv, pixels_round, AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests) requires('gui') @@ -243,7 +244,7 @@ class MenubuttonTest(AbstractLabelTest, unittest.TestCase): 'takefocus', 'text', 'textvariable', 'underline', 'width', 'wraplength', ) - _conv_pixels = AbstractWidgetTest._conv_pixels + _conv_pixels = staticmethod(pixels_round) def _create(self, **kwargs): return tkinter.Menubutton(self.root, **kwargs) |