mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, add test case for sphinx-doc/sphinx#4096
This commit is contained in:
parent
0aa5c1b697
commit
6d61098058
1
CHANGES
1
CHANGES
@ -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
|
||||
--------
|
||||
|
5
tests/roots/test-domain-cpp/roles2.rst
Normal file
5
tests/roots/test-domain-cpp/roles2.rst
Normal file
@ -0,0 +1,5 @@
|
||||
Check that we don't crash just because we misuse a role.
|
||||
|
||||
.. cpp:class:: A
|
||||
|
||||
:cpp:func:`A`
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user