Message225760
| Author |
zach.ware |
| Recipients |
serhiy.storchaka, terry.reedy, zach.ware |
| Date |
2014年08月23日.20:10:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1408824639.7.0.685120896496.issue22260@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年08月23日 20:10:40 | zach.ware | set | recipients:
+ zach.ware, terry.reedy, serhiy.storchaka |
| 2014年08月23日 20:10:39 | zach.ware | set | messageid: <1408824639.7.0.685120896496.issue22260@psf.upfronthosting.co.za> |
| 2014年08月23日 20:10:39 | zach.ware | link | issue22260 messages |
| 2014年08月23日 20:10:39 | zach.ware | create |
|