diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-17 20:58:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-17 20:58:32 +0900 |
commit | 527e95540538f5896a0236647d13a6e281144c4b (patch) | |
tree | 41c8aa54dc3865440278648dca383075e6f3a064 /tests/test_ext_autodoc.py | |
parent | fcb22f20743de2028bbc35d44419649928b452fc (diff) | |
parent | 90bf81bd379793c1144a2ecd955b4da4cff0fe37 (diff) | |
download | sphinx-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.py | 4 |
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.*' |