Re: svn commit: rev 408 - trunk/subversion/tests/clients/cmdline trunk/subversion/tests/clients/cmdline/svntest
From: Greg Stein <gstein_at_lyra.org>
Date: 2001-11-06 22:05:53 CET
On Tue, Nov 06, 2001 at 02:05:34PM -0600, kfogel@tigris.org wrote:
And what would be easier is to move them svntest/__init__.py. You could then
except svntest.TreeError:
You could also put them into svntest/errors.py, use "from svntest import
Next, create a single superclass for all of them:
class TestException(Exception):
clas SVNTreeError(TestException):
That would allow:
except svntest.TestException:
except (svntest.TreeError, svtest.TreeUnequal, ...):
or use multiple except clauses.
Cheers,
-- Greg Stein, http://www.lyra.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 21 14:36:48 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.