summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-02-17 20:58:32 +0900
committerGitHub <noreply@github.com>2019-02-17 20:58:32 +0900
commit527e95540538f5896a0236647d13a6e281144c4b (patch)
tree41c8aa54dc3865440278648dca383075e6f3a064 /tests/test_ext_autodoc.py
parentfcb22f20743de2028bbc35d44419649928b452fc (diff)
parent90bf81bd379793c1144a2ecd955b4da4cff0fe37 (diff)
downloadsphinx-git-527e95540538f5896a0236647d13a6e281144c4b.tar.gz
Merge pull request #6085 from tk0miya/refactor_tests_unpickle
test: Use get_doctree() to load doctree files
Diffstat (limited to 'tests/test_ext_autodoc.py')
-rw-r--r--tests/test_ext_autodoc.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index 7a366bd29..eeee9e3a3 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -8,8 +8,6 @@
:license: BSD, see LICENSE for details.
"""
-import pickle
-
import pytest
from sphinx import addnodes
@@ -19,7 +17,7 @@ from sphinx import addnodes
def test_autodoc(app, status, warning):
app.builder.build_all()
- content = pickle.loads((app.doctreedir / 'index.doctree').bytes())
+ content = app.env.get_doctree('index')
assert isinstance(content[3], addnodes.desc)
assert content[3][0].astext() == 'autodoc_dummy_module.test'
assert content[3][1].astext() == 'Dummy function using dummy.*'