diff options
Diffstat (limited to 'tests/test_ext_autosummary.py')
| -rw-r--r-- | tests/test_ext_autosummary.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ext_autosummary.py b/tests/test_ext_autosummary.py index 63026beb5..3cc9710d8 100644 --- a/tests/test_ext_autosummary.py +++ b/tests/test_ext_autosummary.py @@ -10,11 +10,13 @@ import sys from io import StringIO +from unittest.mock import Mock import pytest from sphinx.ext.autosummary import mangle_signature, import_by_name, extract_summary from sphinx.testing.util import etree_parse +from sphinx.util.docutils import new_document html_warnfile = StringIO() @@ -57,8 +59,6 @@ def test_mangle_signature(): def test_extract_summary(capsys): - from sphinx.util.docutils import new_document - from mock import Mock settings = Mock(language_code='', id_prefix='', auto_id_prefix='', |
