This commit is contained in:
Jakob Lykke Andersen 2017-10-03 14:35:10 +02:00
parent 0aa5c1b697
commit 6d61098058
3 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,7 @@ Bugs fixed
* #4085: Failed PDF build from image in parsed-literal using ``:align:`` option
* #4100: Remove debug print from autodoc extension
* #3987: Changing theme from alabaster causes HTML build to fail
* #4096: C++, don't crash when using the wrong role type. Thanks to mitya57.
Testing
--------

View File

@ -0,0 +1,5 @@
Check that we don't crash just because we misuse a role.
.. cpp:class:: A
:cpp:func:`A`

View File

@ -508,6 +508,13 @@ def test_attributes():
# raise DefinitionError("")
@pytest.mark.sphinx(testroot='domain-cpp')
def test_build_domain_cpp_misuse_of_roles(app, status, warning):
app.builder.build_all()
# TODO: properly check for the warnings we expect
@pytest.mark.sphinx(testroot='domain-cpp', confoverrides={'add_function_parentheses': True})
def test_build_domain_cpp_with_add_function_parentheses_is_True(app, status, warning):
app.builder.build_all()