Mercurial > ~astiob > upreckon > hgweb
comparison 2.00/test-svn.py @ 17:dfe872cafbd0
$Rev: $ in test-svn.py 2.00 should now work
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 07 Jun 2010 23:38:13 +0000 |
parents | f2279b7602d3 |
children | a33653cdad57 |
comparison
equal
deleted
inserted
replaced
16:f2279b7602d3 | 17:dfe872cafbd0 |
---|---|
3 | 3 |
4 from __future__ import division, with_statement | 4 from __future__ import division, with_statement |
5 import optparse, sys, compat | 5 import optparse, sys, compat |
6 from compat import say | 6 from compat import say |
7 | 7 |
8 # $Rev: 15 $ | 8 # $Rev: $ |
9 version = '2.00.0 (SVN r$$REV$$)' | 9 version = '2.00.0 (SVN r$$REV$$)' |
10 parser = optparse.OptionParser(version='test.py '+version, epilog='Python 2.5 or newer is required, unless you have a custom build of Python.') | 10 parser = optparse.OptionParser(version='test.py '+version, epilog='Python 2.5 or newer is required, unless you have a custom build of Python.') |
11 parser.add_option('-u', '--update', dest='update', action='store_true', default=False, help='check for an updated version of test.py') | 11 parser.add_option('-u', '--update', dest='update', action='store_true', default=False, help='check for an updated version of test.py') |
12 parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='create a copy of the input/output files of the last test case for manual testing and exit') | 12 parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='create a copy of the input/output files of the last test case for manual testing and exit') |
13 parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed after finishing testing') | 13 parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed after finishing testing') |