Fix Doxygen unit test in Python "-builtin" case.

Unfortunately there doesn't seem to be any way to use docstrings for __init__
methods when using "-builtin", so just disable this particular test then.
This commit is contained in:
Vadim Zeitlin 2014-12-15 14:05:15 +01:00
commit 8316f08aec

View file

@ -2,6 +2,7 @@
import doxygen_parsing
import string
import os
import sys
import commentVerifier
@ -14,7 +15,12 @@ The class comment""")
commentVerifier.check(doxygen_parsing.SomeStruct.__doc__,
r"""
The struct comment""")
commentVerifier.check(doxygen_parsing.SomeAnotherClass.__init__.__doc__,
# There doesn't seem to be any way to specify the doc string for __init__ when
# using "-builtin" (see http://stackoverflow.com/q/11913492/15275), so skip
# this test in this case.
if str(os.environ.get('SWIG_FEATURES')).find('-builtin') == -1:
commentVerifier.check(doxygen_parsing.SomeAnotherClass.__init__.__doc__,
r""" *Overload 1:*
First overloaded constructor.
@ -22,6 +28,7 @@ commentVerifier.check(doxygen_parsing.SomeAnotherClass.__init__.__doc__,
*Overload 2:*
Second overloaded constructor.""")
commentVerifier.check(doxygen_parsing.SomeAnotherClass.classMethod.__doc__,
r"""
The class method comment.