New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tkinter basic options tests #63285
Comments
The proposed patch adds tests for all options of all widgets. They test that widgets support all documented options, accepts valid values in different formats, reject invalid values, and return values in expected format. This would be helpful for regression testing. The patch tested with Tcl/Tk 8.5 and 8.6 on Linux. All new tests are compatible with wantobjects=1 and wantobjects=0. It will be good to test it with Tcl/Tk 8.4 (or even 8.3) and on Windows. |
If there are no objections I'm going to commit this. |
With Aqua Cocoa Tcl/Tk 8.5.14 or 8.6.0 (using ActiveState's 8.5.14 or 8.6.0) on OS X 10.8.5, running test_ttk_guionly: ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py", line 22, in test_class
self.assertEqual(widget['class'], '')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option "-class" ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py", line 44, in test_style
self.assertEqual(widget['style'], '')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option "-style" ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 426, in test_orient
self.checkEnumParam(widget, 'orient', 'horizontal', 'vertical')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 244, in checkEnumParam
errmsg='ambiguous' + errmsg2)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 174, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised Ran 233 tests in 2.823s FAILED (failures=1, errors=2, skipped=1) --------------- With Aqua Carbon Tcl/Tk 8.4.19 (using ActiveState's 8.4.19) on OS X 10.8.5, running test_ttk_guionly (in 32-bit mode): ===================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py", line 22, in test_class
self.assertEqual(widget['class'], '')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option "-class" ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py", line 44, in test_style
self.assertEqual(widget['style'], '')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option "-style" ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py", line 351, in test_values
self.assertEqual(self.combo['values'], '')
AssertionError: () != '' ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 336, in test_borderwidth
0, 1.3, 2.6, 6, -2, '10p')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '0'> != 0 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 556, in test_height
self.checkPixelsParam(widget, 'height', 100, 101.2, 102.6, -100, 0, '3c')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '100'> != 100 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 560, in test_width
self.checkPixelsParam(widget, 'width', 402, 403.4, 404.6, -402, 0, '5i')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '402'> != 402 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 336, in test_borderwidth
0, 1.3, 2.6, 6, -2, '10p')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '0'> != 0 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 556, in test_height
self.checkPixelsParam(widget, 'height', 100, 101.2, 102.6, -100, 0, '3c')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '100'> != 100 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 560, in test_width
self.checkPixelsParam(widget, 'width', 402, 403.4, 404.6, -402, 0, '5i')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '402'> != 402 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 493, in test_wraplength
self.checkParams(widget, 'wraplength', 100)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 186, in checkParams
self.checkParam(widget, name, value, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '100'> != 100 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py", line 876, in test_length
self.checkPixelsParam(widget, 'length', 100.1, 56.7, '2i')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '100.1'> != 100.1 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py", line 787, in test_length
self.checkPixelsParam(widget, 'length', 130, 131.2, 135.6, '5i')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '130'> != 130 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 426, in test_orient
self.checkEnumParam(widget, 'orient', 'horizontal', 'vertical')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 244, in checkEnumParam
errmsg='ambiguous' + errmsg2)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 174, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 556, in test_height
self.checkPixelsParam(widget, 'height', 100, 101.2, 102.6, -100, 0, '3c')
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 260, in checkPixelsParam
conv=conv, **kwargs)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 161, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py", line 145, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: <pixel object: '101.2'> != 101.2 Ran 233 tests in 3.203s FAILED (failures=12, errors=2, skipped=1) |
Thank you Ned. |
Updated patch fixes issues for Tk 8.4 and skipped ttk.Scrollbar test on MacOSX. I have increased the priority because many Tkinter issues will benefit from these tests. |
Updated patch addresses Ezio's comments. |
New changeset 92e268f2719e by Serhiy Storchaka in branch '3.3': New changeset ab7c2c1d349c by Serhiy Storchaka in branch 'default': New changeset ced345326151 by Serhiy Storchaka in branch '2.7': |
New changeset cee56ef59a6a by Serhiy Storchaka in branch 'default': |
New changeset 278d15021d9a by Serhiy Storchaka in branch '2.7': |
New changeset f25679db52fb by Serhiy Storchaka in branch '3.3': New changeset 4a2afda8f187 by Serhiy Storchaka in branch '2.7': |
With Cocoa Tk 8.5.15 or Cocoa Tk 8.6.1 on OS X 10.8.5, test_widgets.ButtonTest crashes Tk: test_image (tkinter.test.test_tkinter.test_widgets.ButtonTest) ... 2013-11-03 01:52:53.498 pytest_10.8[82465:f07] *** Assertion failure in -[NSBitmapImageRep initWithCGImage:], /SourceCache/AppKit/AppKit-1187.40/AppKit.subproj/NSBitmapImageRep.m:1242 With Carbon Tk 8.4.20 on OS X 10.8.5, two test_insertborderwidth failures: ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_tkinter/test_widgets.py", line 327, in test_insertborderwidth
self.checkPixelsParam(widget, 'insertborderwidth', 0, 1.3, -2)
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py", line 158, in checkPixelsParam
conv=conv1, **kwargs)
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py", line 48, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py", line 32, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 0 != 1 ====================================================================== Traceback (most recent call last):
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_tkinter/test_widgets.py", line 327, in test_insertborderwidth
self.checkPixelsParam(widget, 'insertborderwidth', 0, 1.3, -2)
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py", line 158, in checkPixelsParam
conv=conv1, **kwargs)
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py", line 48, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/py/dev/3x/root/fwd32/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/widget_tests.py", line 32, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 0 != 1 Ran 536 tests in 1.149s FAILED (failures=2, skipped=10) |
Yes, I know. Here is a list of broken buildbots: http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%203.x On Tiger only two tests failed, on other buildbots multiple tests failed and symptoms look as differences between 8.5 and 8.4 or 8.5 (Tk version is wrongly detected?). I'm working on this. |
Serhiy, In Python3.4, Windows Vista 32 bit, Release Mode, Tcl/Tk 8.5.15, I got a lot of errors. However, if I set _conv_pixels to round in Lib/tkinter/test/widget_tests.py, everything works fine. In Python 3.4, Fedora 18, Debug Mode, Tcl/Tk 8.5.13, I got a lot of errors. However, if I set _conv_pixels to round in Lib/tkinter/test/widget_tests.py, I got two errors only. ====================================================================== Traceback (most recent call last):
File "Lib/tkinter/test/test_tkinter/test_widgets.py", line 335, in test_insertwidth
self.checkParam(widget, 'insertwidth', 0.9, expected=2)
File "/home/sky/Code/python/programming_language/cpython/Lib/tkinter/test/widget_tests.py", line 49, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "/home/sky/Code/python/programming_language/cpython/Lib/tkinter/test/widget_tests.py", line 33, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 1 != 2 Other error is same. Hope that helps! |
New changeset a34889a30d52 by Serhiy Storchaka in branch '2.7': New changeset dfdf47a9aad4 by Serhiy Storchaka in branch '3.3': New changeset e7be7aceab77 by Serhiy Storchaka in branch 'default': |
Thanks Vajrasky. Now I see that this is a bug in Tk 8.5 which was fixed in 8.5.12. We should use round() to conform with last Tk patchlevels. However this breaks tests on Ubuntu 12.04 LTS which uses 8.5.11. Here is a patch which adds workaround for this bug. |
New changeset c3fa22d04fb2 by Serhiy Storchaka in branch '2.7': New changeset 583347b79aa0 by Serhiy Storchaka in branch '3.3': New changeset fe5a829bd645 by Serhiy Storchaka in branch 'default': |
New changeset fe7aaf14b129 by Serhiy Storchaka in branch '2.7': New changeset 47d3714dcb33 by Serhiy Storchaka in branch '3.3': New changeset 713cc4908a96 by Serhiy Storchaka in branch 'default': |
Looks like the last commit broke 8.5.15 on Windows; in particular, on line 25 of widget_tests.py, int_round doesn't exist. Replacing 'int_round' with 'round' allows most tests to pass, but I still get these two failures: ====================================================================== Traceback (most recent call last):
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\test_tkinter\test_widget
s.py", line 336, in test_insertwidth
self.checkParam(widget, 'insertwidth', 0.9, expected=2)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 6
6, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 5
0, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 1 != 2 ====================================================================== Traceback (most recent call last):
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\test_tkinter\test_widget
s.py", line 336, in test_insertwidth
self.checkParam(widget, 'insertwidth', 0.9, expected=2)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 6
6, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 5
0, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 1 != 2 |
New changeset d5d0356ba5ac by Serhiy Storchaka in branch '3.3': New changeset fc4ef17c7db8 by Serhiy Storchaka in branch 'default': |
Thank you Zachary. |
New changeset eb126f976fa2 by Serhiy Storchaka in branch '2.7': New changeset 21fbe3ec90dc by Serhiy Storchaka in branch '3.3': New changeset ce08158e3f6c by Serhiy Storchaka in branch 'default': |
Working from ce08158e3f6c with 8.5.15 on Windows, I get the same failures with a different AssertionError: ====================================================================== Traceback (most recent call last):
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\test_tkinter\test_widget
s.py", line 340, in test_insertwidth
self.checkParam(widget, 'insertwidth', 0.9)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 6
6, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 5
0, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 1 != 0.9 ====================================================================== Traceback (most recent call last):
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\test_tkinter\test_widget
s.py", line 340, in test_insertwidth
self.checkParam(widget, 'insertwidth', 0.9)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 6
6, in checkParam
self.assertEqual2(widget[name], expected, eq=eq)
File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 5
0, in assertEqual2
self.assertEqual(actual, expected, msg)
AssertionError: 1 != 0.9 By the way, thank you for all the work you're doing on this, Serhiy! |
FTR, both 8.5.11 and 8.6.1 pass all tests on Windows from ce08158e3f6c (with unrelated modifications required to build and use 8.6.1). |
New changeset c97600bdd726 by Serhiy Storchaka in branch '2.7': New changeset bec6df56c053 by Serhiy Storchaka in branch '3.3': New changeset 545feebd58fb by Serhiy Storchaka in branch 'default': |
My fault. I missed that here is simple checkParam() instead of checkPixelsParam(). Thank you Zachary. |
New changeset be8f9beca8aa by Serhiy Storchaka in branch '2.7': New changeset 204e66190dbb by Serhiy Storchaka in branch '3.3': New changeset 2834e410d1ae by Serhiy Storchaka in branch 'default': |
test_widgets.ButtonTest is still causing a Cocoa Tk 8.5/8.6 crash which also crashes Python while running the test suite. The test should be fixed or disabled. |
Crashes? It should be separate issue, no one Tkinter operation shouldn't crash Python. Fill free to disable this tests on MacOSX (or better on more specific environment) if they prevent the test suite from running. |
See msg202006 above. |
Opened bpo-19733 for this. |
I've opened bpo-19761 to document the current state of test failures for 3.4.0b1 on OS X with the native Tk 8.5 and 8.4. |
What's the status here? Appears to be fixed? |
All of the failures I reported are now fixed so I think this issue can be closed. |
Thank you Net, Vajrasky and Zachary for your help for testing. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: