You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by cm...@collab.net on 2001/08/28 14:16:14 UTC
Re: CVS update: MODIFIED: cmdline, commit_tests.py, svnadmin_tests.py ...
Ben Collins-Sussman <su...@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