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

Re: Subverion Performance Tests

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-11-13 04:36:41 CET

On Wed, Nov 13, 2002 at 12:27:40AM +0000, Philip Martin wrote:
> Brandon Ehle <azverkan@yahoo.com> writes:
> > >--- reposbench.py.orig Tue Nov 12 23:52:52 2002
> > >+++ reposbench.py Tue Nov 12 23:51:28 2002
> > >@@ -36,7 +36,7 @@
> > > err=p.childerr.read()
> > > if p.poll()<>0:
> > > print err
> > >- assert(p.poll()==0)
> > >+ #assert(p.poll()==0)
> > > m=re_collect.search(err)
> > > assert(m)

As an aside, note that assert is a *statement* in Python rather than a
function. And the syntax is:

  assert expr [, expr]

(or something like that) Specifically, the parens are superfluous:

  assert p.poll() == 0
  assert m

  etc

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 13 05:47:18 2002

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.