Author terry.reedy
Recipients brett.cannon, chris.jerdonek, eric.araujo, eric.snow, ezio.melotti, python-dev, r.david.murray, serhiy.storchaka, terry.reedy, zach.ware
Date 2013-05-15.18:43:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368643396.21.0.814863283006.issue16748@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-05-15 18:43:16terry.reedysetrecipients: + 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:16terry.reedysetmessageid: <1368643396.21.0.814863283006.issue16748@psf.upfronthosting.co.za>
2013-05-15 18:43:16terry.reedylinkissue16748 messages
2013-05-15 18:43:16terry.reedycreate