Fix autodoc testcase for new named python arguments when using python -builtin

For the changes in #201.
This commit is contained in:
William S Fulton 2014-10-27 20:03:31 +00:00
commit 5d71f91b29

View file

@ -163,7 +163,7 @@ check(A.func0static.__doc__,
, ,
"\n" "\n"
"func0static(e, arg2, hello, f=2) -> int\n" "func0static(e, arg2, hello, f=2) -> int\n"
"func0static(e, arg3, hello) -> int\n" "func0static(e, arg2, hello) -> int\n"
"" ""
) )
check(A.func1static.__doc__, check(A.func1static.__doc__,
@ -174,7 +174,7 @@ check(A.func1static.__doc__,
, ,
"\n" "\n"
"func1static(A e, short arg2, Tuple hello, double f=2) -> int\n" "func1static(A e, short arg2, Tuple hello, double f=2) -> int\n"
"func1static(A e, short arg3, Tuple hello) -> int\n" "func1static(A e, short arg2, Tuple hello) -> int\n"
"" ""
) )
check(A.func2static.__doc__, check(A.func2static.__doc__,
@ -205,11 +205,11 @@ check(A.func2static.__doc__,
" hello: int tuple[2]\n" " hello: int tuple[2]\n"
" f: double\n" " f: double\n"
"\n" "\n"
"func2static(e, arg3, hello) -> int\n" "func2static(e, arg2, hello) -> int\n"
"\n" "\n"
"Parameters:\n" "Parameters:\n"
" e: A *\n" " e: A *\n"
" arg3: short\n" " arg2: short\n"
" hello: int tuple[2]\n" " hello: int tuple[2]\n"
"\n" "\n"
"" ""
@ -242,11 +242,11 @@ check(A.func3static.__doc__,
" hello: int tuple[2]\n" " hello: int tuple[2]\n"
" f: double\n" " f: double\n"
"\n" "\n"
"func3static(A e, short arg3, Tuple hello) -> int\n" "func3static(A e, short arg2, Tuple hello) -> int\n"
"\n" "\n"
"Parameters:\n" "Parameters:\n"
" e: A *\n" " e: A *\n"
" arg3: short\n" " arg2: short\n"
" hello: int tuple[2]\n" " hello: int tuple[2]\n"
"\n" "\n"
"" ""
@ -287,7 +287,7 @@ check(B.__doc__,
"Proxy of C++ B class", "Proxy of C++ B class",
"::B" "::B"
) )
check(C.__init__.__doc__, "__init__(self, a, b, h) -> C", None, skip) check(C.__init__.__doc__, "__init__(self, a, b, h) -> C")
check(D.__init__.__doc__, "__init__(D self, int a, int b, Hola h) -> D", None, skip) check(D.__init__.__doc__, "__init__(D self, int a, int b, Hola h) -> D", None, skip)
check(E.__init__.__doc__, check(E.__init__.__doc__,
"\n" "\n"