]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/test/enable_shared_from_this.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / python / test / enable_shared_from_this.py
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
12 def 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
20 if __name__ == '__main__':
21 print("running...")
22 import sys
23 status = run()[0]
24 if (status == 0): print("Done.")
25 sys.exit(status)
26