-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18 #71500
Comments
On 3.6.0a2, 3.5.2rc1, and 2.7.12rc1: ====================================================================== Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/test/test_ttk/test_widgets.py", line 332, in test_identify
self.assertEqual(self.entry.identify(5, 5), "textarea")
AssertionError: 'Combobox.button' != 'textarea'
- Combobox.button
+ textarea On 3.6.0a2 and 3.5.2rc1: ====================================================================== Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/test/test_ttk/test_widgets.py", line 455, in test_virtual_event
self.assertTrue(success)
AssertionError: [] is not true |
These tests are not new. Are failures stable? What version of Tk is used? |
Ah, sorry, I missed the version in the title. |
For example, the tests pass in 3.5.1 but fail in 3.5.2rc1. I see that the changesets associated with bpo-26177 altered them. |
Are there failures if run tests separately? $ ./python -m test -vu gui -m test_identify test_ttk_guionly If no, could you please find a test running before test_identify or test_virtual_event that provokes a failure? I can't reproduce failures on Linux. Needed help of Mac user for investigating this issue. |
test_ttk_guionly runs test_identify, doesn't it? (I'll try to take a look at it later when I have more time.) $ /usr/local/bin/python3.5 -m test -vu gui test_ttk_guionly
== CPython 3.5.2rc1 (v3.5.2rc1:68feec6488b2, Jun 11 2016, 21:59:53) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
== Darwin-15.5.0-x86_64-i386-64bit little-endian
== hash algorithm: siphash24 64bit
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_ttk_guionly
test_horizontal_range (tkinter.test.test_ttk.test_extensions.LabeledScaleTest) ... ok
test_initialization (tkinter.test.test_ttk.test_extensions.LabeledScaleTest) ... ok
test_initialization_no_master (tkinter.test.test_ttk.test_extensions.LabeledScaleTest) ... ok
test_resize (tkinter.test.test_ttk.test_extensions.LabeledScaleTest) ... ok
test_variable_change (tkinter.test.test_ttk.test_extensions.LabeledScaleTest) ... ok
test_widget_destroy (tkinter.test.test_ttk.test_extensions.LabeledScaleTest) ... ok
test_initialization (tkinter.test.test_ttk.test_extensions.OptionMenuTest) ... ok
test_menu (tkinter.test.test_ttk.test_extensions.OptionMenuTest) ... ok
test_widget_destroy (tkinter.test.test_ttk.test_extensions.OptionMenuTest) ... ok
test_configure (tkinter.test.test_ttk.test_style.StyleTest) ... ok
test_layout (tkinter.test.test_ttk.test_style.StyleTest) ... ok
test_lookup (tkinter.test.test_ttk.test_style.StyleTest) ... ok
test_map (tkinter.test.test_ttk.test_style.StyleTest) ... ok
test_theme_use (tkinter.test.test_ttk.test_style.StyleTest) ... ok
patchlevel = 8.5.18
[...]
test_foreground (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_height (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_identify (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... FAIL
test_invalidcommand (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_justify (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_keys (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_postcommand (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
[...]
test_validatecommand (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_validation (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_validation_options (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_values (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_virtual_event (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... FAIL
test_width (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_xscrollcommand (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... ok
test_background (tkinter.test.test_ttk.test_widgets.EntryTest) ... ok
[...]
test_identify (tkinter.test.test_ttk.test_widgets.WidgetTest) ... ok
test_widget_state (tkinter.test.test_ttk.test_widgets.WidgetTest) ... ok ====================================================================== Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/test/test_ttk/test_widgets.py", line 332, in test_identify
self.assertEqual(self.entry.identify(5, 5), "textarea")
AssertionError: 'Combobox.button' != 'textarea'
- Combobox.button
+ textarea ====================================================================== Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/test/test_ttk/test_widgets.py", line 455, in test_virtual_event
self.assertTrue(success)
AssertionError: [] is not true Ran 271 tests in 3.242s FAILED (failures=2, skipped=11) |
With a current Tk 8.6.8, test_virtual_event no longer fails (still does with 8.5.18) but test_identify still fails as it does with 8.5. |
macOS Cocoa Tk returns an identity of 'Combobox.button' for the created Combobox widget at the tested location whereas the X-based Tk's (including the macOS X version) returns 'textarea'. Rather than try to further modify the test code, I just modified the test case to pass with either value when running on macOS. |
In aeca373 (PR pythongh-12011, issue pythongh-71500), test_identify() was changed to expect different results on Darwin. This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests.
…H-125335) In aeca373 (PR pythongh-12011, issue pythongh-71500), test_identify() was changed to expect different results on Darwin. Ned's fix was later adjusted by e52f9be. This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests. (cherry picked from commit 4197a79) Co-authored-by: Erlend E. Aasland <[email protected]>
…H-125335) In aeca373 (PR pythongh-12011, issue pythongh-71500), test_identify() was changed to expect different results on Darwin. Ned's fix was later adjusted by e52f9be. This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests. (cherry picked from commit 4197a79) Co-authored-by: Erlend E. Aasland <[email protected]>
) (#125391) In aeca373 (PR gh-12011, issue gh-71500), test_identify() was changed to expect different results on Darwin. Ned's fix was later adjusted by e52f9be. This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests. (cherry picked from commit 4197a79) Co-authored-by: Erlend E. Aasland <[email protected]>
) (#125390) In aeca373 (PR gh-12011, issue gh-71500), test_identify() was changed to expect different results on Darwin. Ned's fix was later adjusted by e52f9be. This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests. (cherry picked from commit 4197a79) Co-authored-by: Erlend E. Aasland <[email protected]>
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: