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

Re: CVS update: MODIFIED: cmdline, commit_tests.py, svnadmin_tests.py ...

From: <cmpilato_at_collab.net>
Date: 2001-08-28 16:16:14 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> cmpilato@tigris.org writes:
>
> > +try:
> > + import svntest
> > +except SyntaxError:
> > + print "<<< Please make sure you have Python 2.1 or better! >>>"
> > + traceback.print_exc()
> > + raise SystemExit
>
> Does this actually work?

Yes, it works. Hats off to the dude who responded to my post on
comp.lang.python!

> I've tried to implement this twice. But a python 1.5 interpreter kept
> dying during pre-compile phase, not execution.

I get exactly what I expect to get:

% python1.5 basic_tests.py
<<< Please make sure you have Python 2.1 or better! >>>
Traceback (innermost last):
  File "basic_tests.py", line 24, in ?
    import svntest
  File "svntest/__init__.py", line 2, in ?
    import main, tree, actions
  File "svntest/actions.py", line 45
     [[x[0], x[1]] for x in main.greek_tree])

> Also, don't we require python 2.0, not 2.1?

Oh. That could be. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:37 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.