-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback) #52692
Comments
http://www.python.org/dev/buildbot/builders/x86 Tiger trunk/builds/15/steps/test/logs/stdio test test_ttk_guionly failed -- multiple errors occurred; run in verbose mode for details ====================================================================== Traceback (most recent call last):
File "/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/test/test_ttk/test_widgets.py", line 560, in test_tab_identifiers
self.assertEqual(self.nb.tab('@5,5'), self.nb.tab('current'))
File "/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/ttk.py", line 922, in tab
return _val_or_dict(kw, self.tk.call, self._w, "tab", tab_id)
File "/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/ttk.py", line 318, in _val_or_dict
res = func(*(args + options))
TclError: tab '@5,5' not found ====================================================================== Traceback (most recent call last):
File "/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/test/test_ttk/test_widgets.py", line 27, in test_identify
self.assertEqual(self.widget.identify(5, 5), "label")
AssertionError: 'Button.button' != 'label' ====================================================================== Traceback (most recent call last):
File "/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/test/test_ttk/test_widgets.py", line 721, in test_traversal
self.assertEqual(self.nb.select(), str(self.child1))
AssertionError: '.33941048' != '.33942584' ====================================================================== Traceback (most recent call last):
File "/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/test/test_ttk/test_widgets.py", line 941, in test_heading_callback
self.fail("The command associated to the treeview heading wasn't "
AssertionError: The command associated to the treeview heading wasn't invoked. Ran 57 tests in 0.361s |
http://www.python.org/dev/buildbot/builders/x86 FreeBSD 3.1/builds/149/steps/test/logs/stdio ====================================================================== Traceback (most recent call last):
File "/usr/home/db3l/buildarea/3.1.bolen-freebsd/build/Lib/tkinter/test/test_ttk/test_widgets.py", line 708, in test_traversal
self.assertEqual(self.nb.select(), str(self.child2))
AssertionError: '.219316556' != '.219317508' Ran 57 tests in 13.798s FAILED (failures=1)
test test_ttk_guionly failed -- Traceback (most recent call last):
File "/usr/home/db3l/buildarea/3.1.bolen-freebsd/build/Lib/tkinter/test/test_ttk/test_widgets.py", line 708, in test_traversal
self.assertEqual(self.nb.select(), str(self.child2))
AssertionError: '.219316556' != '.219317508' |
Also reproduced on Snow Leopard. |
Unassigning because the issue affects more than just OSX and I'm not a Tkinter expert. |
Hi there, I believe I've fixed most of these errors. But I couldn't replicate the last error on the first message, so I guessed what could be the problem. Could you try the patch and see how it works for you ? (Thanks for the nosy addition, I rarely check for bugs as you may know). |
With Guilherme's patch; We are down to 1 error but thats a new errror; test test_ttk_guionly failed -- Traceback (most recent call last):
File "/Users/cartman/Sources/py3k/Lib/tkinter/test/test_ttk/test_widgets.py", line 28, in test_identify
self.widget.winfo_height() / 2), "label")
File "/Users/cartman/Sources/py3k/Lib/tkinter/ttk.py", line 568, in identify
return self.tk.call(self._w, "identify", x, y)
_tkinter.TclError: expected integer but got "30.5" |
> We are down to 1 error but thats a new errror;
>
>
> test test_ttk_guionly failed -- Traceback (most recent call last):
> File "/Users/cartman/Sources/py3k/Lib/tkinter/test/test_ttk/test_widgets.py", line 28, in test_identify
> self.widget.winfo_height() / 2), "label")
> File "/Users/cartman/Sources/py3k/Lib/tkinter/ttk.py", line 568, in identify
> return self.tk.call(self._w, "identify", x, y)
> _tkinter.TclError: expected integer but got "30.5"
> Just convert to integer the results from winfo and you should be fine. |
You should convert the whole expressions actually, but that is because the patch wasn't done for py3k. |
Here is Guilherme's patch converted for py3k. |
Patch fixes the problem for me, please apply. Thanks! |
Committed in r85018, will watch the buildbots. |
There's an issue remaining on the buildbots: ====================================================================== Traceback (most recent call last):
File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/tkinter/test/test_ttk/test_widgets.py", line 945, in test_heading_callback
self.fail("The command associated to the treeview heading wasn't "
AssertionError: The command associated to the treeview heading wasn't invoked. |
Works for me on Snow Leopard for the record. |
The test_heading_callback failure appears to be another Tk 8.4 vs Tk 8.5 problem. Datapoints: the test fails using the Apple-supplied Tk 8.4 in OS X 10.6 and with a recent ActiveState Aqua Tk 8.4 on OS X 10.5; the test succeeds with the Apple-supplied Tk 8.5 in OS X 10.6. |
BTW, release31-maint appears to have the same issue, its fouling up that build on my slave too. I tried applying the ttk3k.patch but it didn't apply cleanly, and I'm completely ignorant of TK so can't really figure out what's different between the 3.1->3.2 version to try to adjust the fix and test it out. Then again I'm not sure if there's still going to be test-fixes applied to 3.1. So its possible you can just ignore this comment :) |
I backported the patch to 2.7 (r85335) and to 3.1 (r85338). Hopefully things will be ok now. |
For the record, everything (2.7, 3.1, and 3.x) runs this test successfully now. :) |
I don't understand why this issue is still open, so let's close it. |
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: