]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/test/implicit.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)
5 >>> from implicit_ext import *
13 >>> try: make_x('fool')
14 ... except TypeError: pass
15 ... else: print('no error')
17 >>> print(x_value.__doc__.splitlines()[1])
18 x_value( (X)arg1) -> int :
20 >>> print(make_x.__doc__.splitlines()[1])
21 make_x( (object)arg1) -> X :
23 >>> print(X.value.__doc__.splitlines()[1])
24 value( (X)arg1) -> int :
26 >>> print(X.set.__doc__.splitlines()[1])
27 set( (X)arg1, (object)arg2) -> None :
37 return doctest
.testmod(sys
.modules
.get(__name__
))
39 if __name__
== '__main__':
43 if (status
== 0): print("Done.")