mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
Begin to build some python fixtures for imports
This commit is contained in:
parent
b497ad3199
commit
b1b463fb99
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,6 +15,7 @@ bin/
|
|||||||
|
|
||||||
*.hp
|
*.hp
|
||||||
*.prof
|
*.prof
|
||||||
|
*.pyc
|
||||||
|
|
||||||
.bundle/
|
.bundle/
|
||||||
.licenses/vendor/gems
|
.licenses/vendor/gems
|
||||||
|
5
test/fixtures/python/analysis/a.py
vendored
Normal file
5
test/fixtures/python/analysis/a.py
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
print("a.py")
|
||||||
|
|
||||||
|
def foo(x):
|
||||||
|
return x
|
||||||
|
|
0
test/fixtures/python/analysis/b/__init__.py
vendored
Normal file
0
test/fixtures/python/analysis/b/__init__.py
vendored
Normal file
4
test/fixtures/python/analysis/b/c.py
vendored
Normal file
4
test/fixtures/python/analysis/b/c.py
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
print("b/c.py")
|
||||||
|
|
||||||
|
def baz(x):
|
||||||
|
return False
|
9
test/fixtures/python/analysis/main.py
vendored
Normal file
9
test/fixtures/python/analysis/main.py
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
print("main.py")
|
||||||
|
|
||||||
|
import a
|
||||||
|
import b.c
|
||||||
|
|
||||||
|
x = a.foo(1)
|
||||||
|
print(x)
|
||||||
|
|
||||||
|
b.c.baz(1)
|
Loading…
Reference in New Issue
Block a user