[issue18526] Add resource management/guarding to unittest

2013-09-16 Thread Zachary Ware
Zachary Ware added the comment: Having thought about this more, I think I agree that this is the wrong approach to the issue and that a more general ability to add command line options to unittest would be better. Closing this issue. -- resolution: -> rejected status: open -> closed

[issue18526] Add resource management/guarding to unittest

2013-08-07 Thread Zachary Ware
Zachary Ware added the comment: (Apologies for the delay in replies, my available time evaporated without notice...) Antoine Pitrou wrote: > Does registerResource() mutate some kind of global per-process state? This > doesn't sound like a good idea. It's not the greatest of ideas, no; but I ha

[issue18526] Add resource management/guarding to unittest

2013-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Does registerResource() mutate some kind of global per-process state? This doesn't sound like a good idea. (and even less so the "default resources", IMO: these are stdlib test suite-specific) -- ___ Python tracker

[issue18526] Add resource management/guarding to unittest

2013-07-23 Thread Michael Foord
Michael Foord added the comment: My question is, is this generally useful enough for test suites beyond the Python standard library. Essentially it provides a command line interface to specialized test skipping. I *still* feel that a generalized mechanism for adding command line options to t

[issue18526] Add resource management/guarding to unittest

2013-07-23 Thread Robert Collins
Robert Collins added the comment: I'll do a full review shortly, but at the conceptual level, I don't see any benefit in making a new SkipTest base class, other than instantly breaking other runners when an unknown exception is raised. SkipTest is part of the API. Making a new exception part o

[issue18526] Add resource management/guarding to unittest

2013-07-23 Thread Robert Collins
Changes by Robert Collins : -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18526] Add resource management/guarding to unittest

2013-07-21 Thread Zachary Ware
New submission from Zachary Ware: Here is an initial attempt at adding resource management/guarding to unittest, a la test.support.requires. The patch adds 6 new names to unittest.__all__; one function called 'registerResource' which explains itself, one function and one decorator (require an