Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/test/bienstman3.py @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 696 bytes
Line 
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 bienstman3_ext import *
6
7>>> try:
8...    V()
9... except RuntimeError, x:
10...    print x
11... else:
12...    print 'expected an exception'
13...
14This class cannot be instantiated from Python
15
16'''
17def run(args = None):
18    import sys
19    import doctest
20
21    if args is not None:
22        sys.argv = args
23    return doctest.testmod(sys.modules.get(__name__))
24   
25if __name__ == '__main__':
26    print "running..."
27    import sys
28    status = run()[0]
29    if (status == 0): print "Done."
30    sys.exit(status)
Note: See TracBrowser for help on using the repository browser.