Message189292
Chris: >>> import unittest as u; u.main("test.test_xxx")
Ezio: I think that's the last nail in the coffin of test_main.
Terry, do you agree?
Belated answer: now that I use and understand the idiom, yes.
Chris: The load_tests protocol (2.7, 3.2+) seems like the right approach for [tests in directories outside of /test].
I am using that in the new idlelib/idle_test/__init__.py. But perhaps the load_tests() example in the doc, which I copied, should be changed from 'do nothing' to 'discover all tests in the directory' as a more useful default. |
|
Date |
User |
Action |
Args |
2013-05-15 18:43:16 | terry.reedy | set | recipients:
+ terry.reedy, brett.cannon, ezio.melotti, eric.araujo, r.david.murray, chris.jerdonek, python-dev, eric.snow, zach.ware, serhiy.storchaka |
2013-05-15 18:43:16 | terry.reedy | set | messageid: <1368643396.21.0.814863283006.issue16748@psf.upfronthosting.co.za> |
2013-05-15 18:43:16 | terry.reedy | link | issue16748 messages |
2013-05-15 18:43:16 | terry.reedy | create | |
|