You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tkinter: test failure due to Tk 8.6.14 listbox bugfix #107262
Although tkinter.Listbox.itemconfigure() will still work properly, test.test_tkinter.test_widgets.ListboxTest.test_itemconfigure will fail since it expects the erroneous output:
We are currently testing for the current behavior. They change Tk tests, so we should also change corresponding Tkinter tests. Either make them more lenient, so they will pass on all version (we can use mock.ANY for this), or expect different result depending on the Tk patch level, or only test this assertion on the fixed Tk with the correct result. The exact value is not so important as its "form" -- we test that itemconfigure() can take two arguments and return a 5-tuple, its first item is the option name and its last item is the current value.
We need to backport this to 3.9, because it's still using ubuntu-20.04 which is deprecated and will be fully unsupported in April: actions/runner-images#11101.
Activity
terryjreedy commentedon Jul 26, 2023
I have no experience with the options database. Are we currently testing for buggy behavior?
serhiy-storchaka commentedon Jul 26, 2023
We are currently testing for the current behavior. They change Tk tests, so we should also change corresponding Tkinter tests. Either make them more lenient, so they will pass on all version (we can use mock.ANY for this), or expect different result depending on the Tk patch level, or only test this assertion on the fixed Tk with the correct result. The exact value is not so important as its "form" -- we test that
itemconfigure()can take two arguments and return a 5-tuple, its first item is the option name and its last item is the current value.Do you want to create a PR @chrstphrchvz?
gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322)
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
[3.13] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (G…
[3.12] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (G…
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
hugovk commentedon Feb 18, 2025
We need to backport this to 3.9, because it's still using
ubuntu-20.04which is deprecated and will be fully unsupported in April: actions/runner-images#11101.And the upgrade to newer Ubuntu also upgrades Tk.
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
pythongh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (pythonGH-119322
[3.11] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (#…
[3.10] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (#…
[3.9] gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322) (#…