summaryrefslogtreecommitdiff
path: root/tests/test_pycode.py
diff options
context:
space:
mode:
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'