diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-01-02 18:57:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 18:57:04 +0000 |
commit | 29e12ec4dbe96130bbd733aaba9d89fd68c2d5a0 (patch) | |
tree | 72ae425a56ffa482f9c46d2408286ed932ee2e2b /tests/test_ext_autodoc_autodata.py | |
parent | ec26c2f874dc468d614a28f9a6b10b9516c7e0a0 (diff) | |
download | sphinx-git-29e12ec4dbe96130bbd733aaba9d89fd68c2d5a0.tar.gz |
Document ``typing.NewType`` as a class (#10700)
Diffstat (limited to 'tests/test_ext_autodoc_autodata.py')
-rw-r--r-- | tests/test_ext_autodoc_autodata.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/test_ext_autodoc_autodata.py b/tests/test_ext_autodoc_autodata.py index f2430c31b..83647d995 100644 --- a/tests/test_ext_autodoc_autodata.py +++ b/tests/test_ext_autodoc_autodata.py @@ -82,36 +82,6 @@ def test_autodata_GenericAlias(app): @pytest.mark.sphinx('html', testroot='ext-autodoc') -def test_autodata_NewType(app): - actual = do_autodoc(app, 'data', 'target.typevar.T6') - assert list(actual) == [ - '', - '.. py:data:: T6', - ' :module: target.typevar', - '', - ' T6', - '', - ' alias of :py:class:`~datetime.date`', - '', - ] - - -@pytest.mark.sphinx('html', testroot='ext-autodoc') -def test_autodata_TypeVar(app): - actual = do_autodoc(app, 'data', 'target.typevar.T1') - assert list(actual) == [ - '', - '.. py:data:: T1', - ' :module: target.typevar', - '', - ' T1', - '', - " alias of TypeVar('T1')", - '', - ] - - -@pytest.mark.sphinx('html', testroot='ext-autodoc') def test_autodata_hide_value(app): actual = do_autodoc(app, 'data', 'target.hide_value.SENTINEL1') assert list(actual) == [ |