mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5824 from tk0miya/remove_absolute_import
Remove absolute_import
This commit is contained in:
commit
2480283e6a
@ -1,4 +1 @@
|
||||
# TODO(stephenfin): Removing this breaks tests. Why?
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .submodule import func1, Class1 # NOQA
|
||||
|
@ -67,10 +67,10 @@ def test_local_source_files(app, status, warning):
|
||||
if modname == 'not_a_package':
|
||||
source = (app.srcdir / 'not_a_package/__init__.py').text()
|
||||
tags = {
|
||||
'func1': ('def', 3, 3),
|
||||
'Class1': ('class', 3, 3),
|
||||
'not_a_package.submodule.func1': ('def', 3, 3),
|
||||
'not_a_package.submodule.Class1': ('class', 3, 3),
|
||||
'func1': ('def', 1, 1),
|
||||
'Class1': ('class', 1, 1),
|
||||
'not_a_package.submodule.func1': ('def', 1, 1),
|
||||
'not_a_package.submodule.Class1': ('class', 1, 1),
|
||||
}
|
||||
else:
|
||||
source = (app.srcdir / 'not_a_package/submodule.py').text()
|
||||
|
Loading…
Reference in New Issue
Block a user