2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00
Files
python/test/const_argument.py
Jonathan Brandmeyer 8e396f8e91 Add new test.
[SVN r25438]
2004-09-27 20:05:52 +00:00

26 lines
618 B
Python

# Copyright Jonathan Brandmeyer, 2004. Distributed under the Boost
# Software License, Version 1.0 (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
"""
>>> from const_argument_ext import *
>>> accept_const_arg_noproto(1)
1
>>> accept_const_arg_with_proto(1)
1
"""
def run(args = None):
import sys
import doctest
if args is not None:
sys.argv = args
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
print "running..."
import sys
status = run()[0]
if (status == 0): print "Done."
sys.exit(status)