summaryrefslogtreecommitdiff
path: root/tests/test_directive_only.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-27 21:49:19 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-27 21:49:19 +0900
commitb4eadba3a1a6c787fbcfcef041d10383e1f51bcc (patch)
tree1bddef8aff6e548c7e604bc764c072909c3834ac /tests/test_directive_only.py
parent4874ae2c1d85df2666c9e3b52bd105599c0acc12 (diff)
downloadsphinx-git-b4eadba3a1a6c787fbcfcef041d10383e1f51bcc.tar.gz
Remove deprecated feature: sphinx.util.nodes.process_only_nodes()
Diffstat (limited to 'tests/test_directive_only.py')
-rw-r--r--tests/test_directive_only.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_directive_only.py b/tests/test_directive_only.py
index 35d15b391..d8017f469 100644
--- a/tests/test_directive_only.py
+++ b/tests/test_directive_only.py
@@ -12,7 +12,6 @@
import re
from docutils import nodes
-from sphinx.util.nodes import process_only_nodes
import pytest
@@ -46,7 +45,7 @@ def test_sectioning(app, status, warning):
app.builder.build(['only'])
doctree = app.env.get_doctree('only')
- process_only_nodes(doctree, app.builder.tags)
+ app.env.apply_post_transforms(doctree, 'only')
parts = [getsects(n)
for n in [_n for _n in doctree.children if isinstance(_n, nodes.section)]]