New submission from Zachary Ware: The attached patch rearranges the tkinter tests and strips out all of their custom test finding/loading code in favor of test discovery. The high points:
- Lib/tkinter/test/ -> Lib/test/test_tkinter/, Lib/tkinter/test/test_tkinter/ -> Lib/test/test_tkinter/test_tk/ (all other files keep the same name) - Lib/test/test_tcl.py -> Lib/test/test_tkinter/test_tcl.py - test_tk.py, test_ttk_guionly.py, and test_ttk_textonly.py in Lib/test/ disappear. - setUpModule in test_tkinter.widget_tests is renamed and moved to test_tkinter.support as setUpGUIModule, which takes the name of the module as an argument for a nice message from test.support.requires('gui'). I'm not entirely happy with how setUpGUIModule turned out and works, suggestions are very welcome. - each ttk test uses a new test_tkinter.support.check_ttk_availability, which is based on the toplevel code from the old test.test_ttk_guionly. I haven't had a chance to test how it works on a system without ttk. ---------- components: Tests, Tkinter files: test_tkinter.diff keywords: patch messages: 225760 nosy: serhiy.storchaka, terry.reedy, zach.ware priority: normal severity: normal stage: patch review status: open title: Rearrange tkinter tests, use test discovery type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file36445/test_tkinter.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com