1# Copyright David Abrahams 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 enable_shared_from_this_ext import * 6 7>>> x = Test.construct() 8>>> x.take(x) 9>>> x.act() 10''' 11 12def run(args = None): 13 import sys 14 import doctest 15 16 if args is not None: 17 sys.argv = args 18 return doctest.testmod(sys.modules.get(__name__)) 19 20if __name__ == '__main__': 21 print("running...") 22 import sys 23 status = run()[0] 24 if (status == 0): print("Done.") 25 sys.exit(status) 26 27