Fix #6545. Strip doctests for doctest_node blocks.

This commit is contained in:
Nathan Goldbaum
2019-07-07 19:28:45 -04:00
parent ef2f1057cd
commit a570ea6c03
3 changed files with 23 additions and 8 deletions
@@ -18,6 +18,7 @@ def test_trim_doctest_flags_html(app, status, warning):
assert 'BAR' in result
assert 'BAZ' not in result
assert 'QUX' not in result
assert 'QUUX' not in result
@pytest.mark.sphinx('latex', testroot='trim_doctest_flags')
@@ -29,3 +30,4 @@ def test_trim_doctest_flags_latex(app, status, warning):
assert 'BAR' in result
assert 'BAZ' not in result
assert 'QUX' not in result
assert 'QUUX' not in result