mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Remove absolute_import
This commit is contained in:
1 parent
8ea3f7fad9
commit
5e5bdb8a64
2 files changed
+4
-7
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user