-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Running test_ttk_guionly logs "test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed" warnings #75689
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
Comments
0:33:11 load avg: 4.82 [ 44/405/1] test_ttk_guionly passed -- running: test_subprocess (504 sec) |
I saw these warnings on: Extract of the pythoninfo: tkinter.TCL_VERSION: 8.6 -- I can reproduce the warning locally: test_selection (tkinter.test.test_ttk.test_widgets.TreeviewTest) ... /home/haypo/prog/python/master/Lib/tkinter/test/test_ttk/test_widgets.py:1562: UserWarning: Deprecated API of Treeview.selection() should be removed |
This is a reminder to me to remove a deprecated API (see bpo-27319). |
Running tests should not log deprecation warnings. Either remove the code, or make the warning quiet, no? :-) |
Serhiy, In tkinter __init__.py, there's messages on trace_variable and other trace functions about adding a deprecation warning. I didn't know if you intended to make those changes as well. |
Thank you Cheryl. I'll open a separate issue. |
Oh, I missed that the selection() method with its current behavior is documented in the module documentation. It isn't undocumented implementation detail. This raises a bar for removing higher. I think it is better to defer removing to 3.8 or later. Instead we should document the deprecation. |
Warnings are fixed in 3.7. They will reappear in 3.8. |
Thank you for the fix Serhiy! |
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: