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

RE: make check: log_tests.py failed

From: Barry Scott <barry.alan.scott_at_ntlworld.com>
Date: 2001-11-30 20:26:48 CET

> All of our python test scripts are doing this:
> # The `svntest' module
> try:
> import svntest
> except SyntaxError:
> sys.stderr.write('[SKIPPED] ')
> print "<<< Please make sure you have Python 2 or better! >>>"
> traceback.print_exc(None,sys.stdout)
> raise SystemExit
> ...is this not enough?

Personally I'd not use the SyntaxError exception to detect version mismatch.
You are overloading the exception with two meanings. (1) get a newer
python and (2) subversion script has a bug in it.

I'd recommend you check for Python 2.1.1 as a min version as its been
out a while, has binary kits for major platforms and is the maintenance
version of 2.1.


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:50 2006

This is an archived mail posted to the Subversion Dev mailing list.