[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Code cleanup: Harmonized tests

From: <cmpilato_at_collab.net>
Date: 2003-08-25 18:38:04 CEST

Michael Wood <mwood@its.uct.ac.za> writes:

> On Sun, Aug 24, 2003 at 11:03:05AM +0200, Erik Hülsmann wrote:
> [snip]
> > Index: subversion/tests/clients/cmdline/diff_tests.py
> > ===================================================================
> > --- subversion/tests/clients/cmdline/diff_tests.py (revision 6841)
> > +++ subversion/tests/clients/cmdline/diff_tests.py (working copy)
> > @@ -75,7 +75,7 @@
> > i += 1
> >
> > # no suitable diff found
> > - return 1
> > + raise 1
>
> I suspect you mean "raise svntest.Failure" here :)

Actually, I think that this should have been left as "return 1". This
is a helper function whose return value is used in both the "is" and
"isn't" senses by its caller.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 25 18:42:19 2003

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.