Remove the module path from the parser tree.
Some static analysis tests are still failing.
This commit is contained in:
1 parent
b60ec024fa
commit
8a35a04439
14 files changed
+102
-101
No files matched your search
@@ -88,20 +88,6 @@ class TestImports():
|
||||
assert imp.end_pos == (1, len('import math'))
|
||||
|
||||
|
||||
def test_module():
|
||||
module = parse('asdf', path='example.py')
|
||||
name = module.name
|
||||
assert str(name) == 'example'
|
||||
assert name.start_pos == (1, 0)
|
||||
assert name.end_pos == (1, 7)
|
||||
|
||||
module = parse('asdf')
|
||||
name = module.name
|
||||
assert str(name) == ''
|
||||
assert name.start_pos == (1, 0)
|
||||
assert name.end_pos == (1, 0)
|
||||
|
||||
|
||||
def test_end_pos():
|
||||
s = dedent('''
|
||||
x = ['a', 'b', 'c']
|
||||
|
||||
Reference in new issue
Block a user