Update of /cvsroot/boost/boost/libs/python/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27268/test

Modified Files:
        args.py defaults.py docstring.py keywords_test.py 
Log Message:
Hans Meine's extra new-line for epydoc with reST compatibility

Index: args.py
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/args.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- args.py     18 May 2006 16:15:59 -0000      1.7
+++ args.py     6 Jun 2007 00:00:57 -0000       1.8
@@ -84,24 +84,24 @@
 (2, 4.25, 'wow')
 >>> q.f1()
 (1, 4.25, 'wow')
->>> q.f2.__doc__.splitlines()[-3]
+>>> q.f2.__doc__.splitlines()[-4]
 "f2's docstring"
 
->>> X.f.__doc__.splitlines()[:2]
-["This is X.f's docstring", 'C++ signature:']
+>>> X.f.__doc__.splitlines()[:3]
+["This is X.f's docstring", '', 'C++ signature:']
 
 >>> xfuncs = (X.inner0, X.inner1, X.inner2, X.inner3, X.inner4, X.inner5)
 >>> for f in xfuncs:
 ...    print f(q,1).value(),
 ...    print f(q, n = 1).value(),
 ...    print f(q, n = 0).value(),
-...    print f.__doc__.splitlines()[:2]
-1 1 0 ['docstring', 'C++ signature:']
-1 1 0 ['docstring', 'C++ signature:']
-1 1 0 ['docstring', 'C++ signature:']
-1 1 0 ['docstring', 'C++ signature:']
-1 1 0 ['docstring', 'C++ signature:']
-1 1 0 ['docstring', 'C++ signature:']
+...    print f.__doc__.splitlines()[:3]
+1 1 0 ['docstring', '', 'C++ signature:']
+1 1 0 ['docstring', '', 'C++ signature:']
+1 1 0 ['docstring', '', 'C++ signature:']
+1 1 0 ['docstring', '', 'C++ signature:']
+1 1 0 ['docstring', '', 'C++ signature:']
+1 1 0 ['docstring', '', 'C++ signature:']
 
 >>> x = X(a1 = 44, a0 = 22)
 >>> x.inner0(0).value()

Index: defaults.py
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/defaults.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- defaults.py 16 Jan 2006 20:54:53 -0000      1.15
+++ defaults.py 6 Jun 2007 00:00:57 -0000       1.16
@@ -113,7 +113,7 @@
 ...   doc = obj.__doc__.splitlines()
 ...   return "\\n".join(["|"+doc[i] for i in args])
 
->>> print selected_doc(X.__init__, 0, 2, 4, 6, 8, 9, 10, 12)
+>>> print selected_doc(X.__init__, 0, 3, 6, 9, 11, 12, 14, 17)
 |C++ signature:
 |C++ signature:
 |C++ signature:
@@ -123,11 +123,11 @@
 |C++ signature:
 |C++ signature:
 
->>> print selected_doc(Y.__init__, 0, 1)
+>>> print selected_doc(Y.__init__, 0, 2)
 |doc of Y init
 |C++ signature:
 
->>> print selected_doc(X.bar2, 0, 2, 4, 6, 8, 9, 10)
+>>> print selected_doc(X.bar2, 0, 3, 6, 9, 11, 12, 14)
 |C++ signature:
 |C++ signature:
 |C++ signature:

Index: docstring.py
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/docstring.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- docstring.py        16 Jan 2006 20:54:53 -0000      1.10
+++ docstring.py        6 Jun 2007 00:00:57 -0000       1.11
@@ -8,23 +8,23 @@
 ...   doc = obj.__doc__.splitlines()
 ...   return "\\n".join(["|"+doc[i] for i in args])
 
->>> print selected_doc(X.__init__, 0, 1, 2)
+>>> print selected_doc(X.__init__, 0, 1, 3)
 |this is the __init__ function
 |its documentation has two lines.
 |C++ signature:
 
->>> print selected_doc(X.value, 0, 1, 3, 4, 5)
+>>> print selected_doc(X.value, 0, 2, 4, 5, 7)
 |gets the value of the object
 |C++ signature:
 |
 |also gets the value of the object
 |C++ signature:
 
->>> print selected_doc(create, 0, 1)
+>>> print selected_doc(create, 0, 2)
 |creates a new X object
 |C++ signature:
 
->>> print selected_doc(fact, 0, 1)
+>>> print selected_doc(fact, 0, 2)
 |compute the factorial
 |C++ signature:
 
@@ -33,8 +33,8 @@
 >>> print selected_doc(fact_usr_off_1, 0)
 |C++ signature:
 >>> len(fact_usr_on_1.__doc__.splitlines())
-3
->>> print selected_doc(fact_usr_on_1, 0, 1)
+4
+>>> print selected_doc(fact_usr_on_1, 0, 2)
 |usr on 1
 |C++ signature:
 >>> len(fact_usr_off_2.__doc__.splitlines())
@@ -42,8 +42,8 @@
 >>> print selected_doc(fact_usr_off_2, 0)
 |C++ signature:
 >>> len(fact_usr_on_2.__doc__.splitlines())
-3
->>> print selected_doc(fact_usr_on_2, 0, 1)
+4
+>>> print selected_doc(fact_usr_on_2, 0, 2)
 |usr on 2
 |C++ signature:
 
@@ -52,8 +52,8 @@
 >>> print selected_doc(fact_sig_off_1, 0)
 |sig off 1
 >>> len(fact_sig_on_1.__doc__.splitlines())
-3
->>> print selected_doc(fact_sig_on_1, 0, 1)
+4
+>>> print selected_doc(fact_sig_on_1, 0, 2)
 |sig on 1
 |C++ signature:
 >>> len(fact_sig_off_2.__doc__.splitlines())
@@ -61,16 +61,16 @@
 >>> print selected_doc(fact_sig_off_2, 0)
 |sig off 2
 >>> len(fact_sig_on_2.__doc__.splitlines())
-3
->>> print selected_doc(fact_sig_on_2, 0, 1)
+4
+>>> print selected_doc(fact_sig_on_2, 0, 2)
 |sig on 2
 |C++ signature:
 
 >>> print fact_usr_off_sig_off_1.__doc__
 None
 >>> len(fact_usr_on_sig_on_1.__doc__.splitlines())
-3
->>> print selected_doc(fact_usr_on_sig_on_1, 0, 1)
+4
+>>> print selected_doc(fact_usr_on_sig_on_1, 0, 2)
 |usr on sig on 1
 |C++ signature:
 >>> len(fact_usr_on_sig_off_1.__doc__.splitlines())
@@ -78,8 +78,8 @@
 >>> print selected_doc(fact_usr_on_sig_off_1, 0)
 |usr on sig off 1
 >>> len(fact_usr_on_sig_on_2.__doc__.splitlines())
-3
->>> print selected_doc(fact_usr_on_sig_on_2, 0, 1)
+4
+>>> print selected_doc(fact_usr_on_sig_on_2, 0, 2)
 |usr on sig on 2
 |C++ signature:
 >>> print fact_usr_off_sig_off_2.__doc__

Index: keywords_test.py
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/keywords_test.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- keywords_test.py    18 May 2006 16:15:59 -0000      1.5
+++ keywords_test.py    6 Jun 2007 00:00:57 -0000       1.6
@@ -80,7 +80,7 @@
 >>> f.set(1,1.0,"1")
 >>> f.a(), f.b(), f.n()
 (1, 1.0, '1')
->>> f.set2.__doc__.splitlines()[-3]
+>>> f.set2.__doc__.splitlines()[-4]
 "set2's docstring"
 '''
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to