mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-21 03:17:05 +08:00
Don't assume either namespace is not-None
This commit is contained in:
1 parent
7eff1bbf06
commit
58b165e4b6
2 files changed
+2
-2
No files matched your search
@@ -24,7 +24,7 @@ def test_py2_imports_are_not_always_absolute():
|
||||
def test_dont_break_imports_without_namespaces():
|
||||
"""
|
||||
The code checking for ``from __future__ import absolute_import`` shouldn't
|
||||
assume that all imports have non-``None`` ``namespace`` attributes.
|
||||
assume that all imports have non-``None`` namespaces.
|
||||
"""
|
||||
src = "from __future__ import absolute_import\nimport xyzzy"
|
||||
parser = Parser(src, "test.py")
|
||||
|
||||
Reference in new issue
Block a user