In the command-line client, forbid
[svn.git] / subversion / tests / cmdline / svntest / __init__.py
blobadc4693995e4413c2aebdba243911f45d2b00324
1 __all__ = ["main", "tree", "actions"]
3 import sys
4 if sys.hexversion < 0x2000000:
5 sys.stderr.write('[SKIPPED] at least Python 2.0 is required')
7 # note: exiting is a bit harsh for a library module, but we really do
8 # require Python 2.0. this package isn't going to work otherwise. and if
9 # a user truly wants to use this package under 1.x somehow (or to clean
10 # up in some way), then they can always trap the SystemExit exception
12 # we're skipping this test, not failing, so exit with 0
13 sys.exit(0)
15 # don't export this name
16 del sys
18 # Define True and False if not provided by Python (<=2.1)
19 try:
20 False
21 except:
22 False = 0
23 True = 1
25 class Failure(Exception):
26 'Base class for exceptions that indicate test failure'
27 pass
29 class Skip(Exception):
30 'Base class for exceptions that indicate test was skipped'
31 pass
33 import main, tree, verify, actions, wc