Remove absolute_import

This commit is contained in:
Takeshi KOMIYA 2018-12-17 20:47:49 +09:00
parent 8ea3f7fad9
commit 5e5bdb8a64
2 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1 @@
# TODO(stephenfin): Removing this breaks tests. Why?
from __future__ import absolute_import
from .submodule import func1, Class1 # NOQA

View File

@ -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()