diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-06-17 03:33:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 19:33:55 +0100 |
commit | 7e68154e49fbb260f7ffee9791bfafdb7fd2e119 (patch) | |
tree | 1631155dc5b00af31352945b166a283eebf9eeed /tests/test_ext_autodoc_autodata.py | |
parent | 0d2a989517203de6d5080e8d8265ffd68fbbb28e (diff) | |
download | sphinx-git-7e68154e49fbb260f7ffee9791bfafdb7fd2e119.tar.gz |
Drop python 3.6 support (#10468)
Diffstat (limited to 'tests/test_ext_autodoc_autodata.py')
-rw-r--r-- | tests/test_ext_autodoc_autodata.py | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/tests/test_ext_autodoc_autodata.py b/tests/test_ext_autodoc_autodata.py index 435060170..f2430c31b 100644 --- a/tests/test_ext_autodoc_autodata.py +++ b/tests/test_ext_autodoc_autodata.py @@ -4,8 +4,6 @@ This tests mainly the Documenters; the auto directives are tested in a test source file translated by test_build. """ -import sys - import pytest from .test_ext_autodoc import do_autodoc @@ -71,27 +69,16 @@ def test_autodata_type_comment(app): @pytest.mark.sphinx('html', testroot='ext-autodoc') def test_autodata_GenericAlias(app): actual = do_autodoc(app, 'data', 'target.genericalias.T') - if sys.version_info < (3, 7): - assert list(actual) == [ - '', - '.. py:data:: T', - ' :module: target.genericalias', - ' :value: typing.List[int]', - '', - ' A list of int', - '', - ] - else: - assert list(actual) == [ - '', - '.. py:data:: T', - ' :module: target.genericalias', - '', - ' A list of int', - '', - ' alias of :py:class:`~typing.List`\\ [:py:class:`int`]', - '', - ] + assert list(actual) == [ + '', + '.. py:data:: T', + ' :module: target.genericalias', + '', + ' A list of int', + '', + ' alias of :py:class:`~typing.List`\\ [:py:class:`int`]', + '', + ] @pytest.mark.sphinx('html', testroot='ext-autodoc') |