Merge pull request #5824 from tk0miya/remove_absolute_import

Remove absolute_import
This commit is contained in:
Takeshi KOMIYA 2018-12-17 21:33:01 +09:00 committed by GitHub
commit 2480283e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()