Line | |
---|
1 | # Copyright Jonathan Brandmeyer, 2004. Distributed under the Boost |
---|
2 | # Software License, Version 1.0 (See accompanying |
---|
3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
4 | """ |
---|
5 | >>> from const_argument_ext import * |
---|
6 | >>> accept_const_arg(1) |
---|
7 | 1 |
---|
8 | """ |
---|
9 | |
---|
10 | def run(args = None): |
---|
11 | import sys |
---|
12 | import doctest |
---|
13 | |
---|
14 | if args is not None: |
---|
15 | sys.argv = args |
---|
16 | return doctest.testmod(sys.modules.get(__name__)) |
---|
17 | |
---|
18 | if __name__ == '__main__': |
---|
19 | print "running..." |
---|
20 | import sys |
---|
21 | status = run()[0] |
---|
22 | if (status == 0): print "Done." |
---|
23 | sys.exit(status) |
---|
Note: See
TracBrowser
for help on using the repository browser.