diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-16 20:40:15 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-16 20:40:15 +0900 |
| commit | a70c76c474bf66f255d0efdd7a1968fd10c1489d (patch) | |
| tree | 29cf8457b6f14c237c486f5c7925b2e5d193edbf /tests/test_util.py | |
| parent | 81964e036b08e182fa9d58c6330a4094083f9070 (diff) | |
| download | sphinx-git-a70c76c474bf66f255d0efdd7a1968fd10c1489d.tar.gz | |
Remove a testcase for get_module_source() (deprecated)
Diffstat (limited to 'tests/test_util.py')
| -rw-r--r-- | tests/test_util.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index f794c4f74..434d96d3a 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -18,7 +18,7 @@ import sphinx from sphinx.errors import ExtensionError, PycodeError from sphinx.testing.util import strip_escseq from sphinx.util import ( - SkipProgressMessage, display_chunk, encode_uri, ensuredir, get_module_source, + SkipProgressMessage, display_chunk, encode_uri, ensuredir, import_object, parselinenos, progress_message, status_iterator, xmlname_checker ) from sphinx.util import logging @@ -61,16 +61,6 @@ def test_display_chunk(): assert display_chunk(('hello', 'sphinx', 'world')) == 'hello .. world' -def test_get_module_source(): - assert get_module_source('sphinx') == ('file', sphinx.__file__) - - # failed to obtain source information from builtin modules - with pytest.raises(PycodeError): - get_module_source('builtins') - with pytest.raises(PycodeError): - get_module_source('itertools') - - def test_import_object(): module = import_object('sphinx') assert module.__name__ == 'sphinx' |
