summaryrefslogtreecommitdiff
path: root/tests/test_pycode.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-03-05 15:43:43 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-03-05 19:03:06 +0000
commit43e681e88ff304f8fab4f8858087c1398bec7a35 (patch)
tree72fd248db535f990b1721e42baa28ef8f6b640aa /tests/test_pycode.py
parentf435fc05e68654a0cb1f36aecaf5100fcf171ee8 (diff)
downloadsphinx-git-43e681e88ff304f8fab4f8858087c1398bec7a35.tar.gz
Remove ``.egg`` support from pycode ``ModuleAnalyser``
Python eggs are a now-obsolete binary distribution format.
Diffstat (limited to 'tests/test_pycode.py')
-rw-r--r--tests/test_pycode.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/test_pycode.py b/tests/test_pycode.py
index 993743a2b..92a8a19e9 100644
--- a/tests/test_pycode.py
+++ b/tests/test_pycode.py
@@ -50,31 +50,6 @@ def test_ModuleAnalyzer_for_module(rootdir):
sys.path.pop(0)
-def test_ModuleAnalyzer_for_file_in_egg(rootdir):
- try:
- path = rootdir / 'test-pycode-egg' / 'sample-0.0.0-py3.7.egg'
- sys.path.insert(0, path)
-
- import sample
- analyzer = ModuleAnalyzer.for_file(sample.__file__, 'sample')
- docs = analyzer.find_attr_docs()
- assert docs == {('', 'CONSTANT'): ['constant on sample.py', '']}
- finally:
- sys.path.pop(0)
-
-
-def test_ModuleAnalyzer_for_module_in_egg(rootdir):
- try:
- path = rootdir / 'test-pycode-egg' / 'sample-0.0.0-py3.7.egg'
- sys.path.insert(0, path)
-
- analyzer = ModuleAnalyzer.for_module('sample')
- docs = analyzer.find_attr_docs()
- assert docs == {('', 'CONSTANT'): ['constant on sample.py', '']}
- finally:
- sys.path.pop(0)
-
-
def test_ModuleAnalyzer_find_tags():
code = ('class Foo(object):\n' # line: 1
' """class Foo!"""\n'