Dan Price wrote:
On Tue 07 Apr 2009 at 06:47PM, Shawn Walker wrote:
Greetings,
The following webrev contains fixes for the following issues:
7774 image history discarded when bootenv operations fail or succeed
8014 some exceptions have invalid __str__ method
Maybe would should have some python tests which instantiate
and str() each kind of exception? Sort-of exception unit testing?
Could we somehow automate that? Not a requirement, just brainstorming.
I don't think it can be fully automated since many of our exceptions
expect different sorts of parameter to be passed to them.
However, I do think it would be possible for us to start an api test
suite that tested each one. We could also make is so that test suite
would fail if there were any exceptions not explicitly named for testing.
It shouldn't add much time to the test suite either given their
relatively light-weight nature.
If that sounds reasonable, I'll open a bug for it.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss