This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients r.david.murray, sandro.tosi, techtonik
Date 2010-11-13.03:50:19
SpamBayes Score 6.6335826e-13
Marked as misclassified No
Message-id <1289620222.25.0.806301385469.issue8332@psf.upfronthosting.co.za>
In-reply-to
Content
I'm -1 on your second case.  That syntax is too magical, especially since a test method can appear on more than one test case.  

The additional pattern matching suggestion is more interesting, but it would be necessary to implement that in unittest, since test classes and methods can be created on the fly. I suggest opening a new issue against unittest to extend pattern matching to test case and test method names if you think that feature is valuable enough to add.

I agree with Sandro, I think the valid part of this request is satisfied by the unittest CLI.  It is true that more work needs to be done before all Python tests can be run successfully in this fashion, since some depend on regrtest features.  But making those fixes (moving useful regrtest features to unittest and eliminating the non-useful regrtest dependencies) is a better investment of resources than adding run-single-test support directly to regrtest, IMO.

If you want to submit a patch for first case, though, feel free to reopen this.  I doubt we'd reject it if you want to do the work.
History
Date User Action Args
2010-11-13 03:50:22r.david.murraysetrecipients: + r.david.murray, techtonik, sandro.tosi
2010-11-13 03:50:22r.david.murraysetmessageid: <1289620222.25.0.806301385469.issue8332@psf.upfronthosting.co.za>
2010-11-13 03:50:20r.david.murraylinkissue8332 messages
2010-11-13 03:50:19r.david.murraycreate