doxygen_autodoc_docstring test fix for Python builtin
This commit is contained in:
parent
19a872eab7
commit
da07af7fe2
3 changed files with 10 additions and 3 deletions
|
|
@ -64,3 +64,12 @@ class ClassWithDoxygenComment2 {};
|
||||||
*/
|
*/
|
||||||
void functionWithDoxygenComment2(int number) {}
|
void functionWithDoxygenComment2(int number) {}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
#ifdef SWIGPYTHON_BUILTIN
|
||||||
|
bool is_python_builtin() { return true; }
|
||||||
|
#else
|
||||||
|
bool is_python_builtin() { return false; }
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,9 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import comment_verifier
|
import comment_verifier
|
||||||
|
|
||||||
exit(0) # temporarily skip runtime test until builtin is fixed
|
|
||||||
# documentation from autogenerated 'feature:autodoc'
|
# documentation from autogenerated 'feature:autodoc'
|
||||||
comment_verifier.check(inspect.getdoc(ClassWithoutDoxygenComment),
|
comment_verifier.check(inspect.getdoc(ClassWithoutDoxygenComment),
|
||||||
"Proxy of C++ ClassWithoutDoxygenComment class.")
|
"::ClassWithoutDoxygenComment" if is_python_builtin() else "Proxy of C++ ClassWithoutDoxygenComment class.")
|
||||||
comment_verifier.check(inspect.getdoc(functionWithoutDoxygenComment),
|
comment_verifier.check(inspect.getdoc(functionWithoutDoxygenComment),
|
||||||
"functionWithoutDoxygenComment(int number)")
|
"functionWithoutDoxygenComment(int number)")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -244,4 +244,3 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue