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