diff --git a/.gitignore b/.gitignore index 3e20c8739..25f0ae3db 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ bin/ *.hp *.prof +*.pyc .bundle/ .licenses/vendor/gems diff --git a/test/fixtures/python/analysis/a.py b/test/fixtures/python/analysis/a.py new file mode 100644 index 000000000..ad5c9f14e --- /dev/null +++ b/test/fixtures/python/analysis/a.py @@ -0,0 +1,5 @@ +print("a.py") + +def foo(x): + return x + diff --git a/test/fixtures/python/analysis/b/__init__.py b/test/fixtures/python/analysis/b/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/python/analysis/b/c.py b/test/fixtures/python/analysis/b/c.py new file mode 100644 index 000000000..9df0b882d --- /dev/null +++ b/test/fixtures/python/analysis/b/c.py @@ -0,0 +1,4 @@ +print("b/c.py") + +def baz(x): + return False diff --git a/test/fixtures/python/analysis/main.py b/test/fixtures/python/analysis/main.py new file mode 100644 index 000000000..1ac29f1e6 --- /dev/null +++ b/test/fixtures/python/analysis/main.py @@ -0,0 +1,9 @@ +print("main.py") + +import a +import b.c + +x = a.foo(1) +print(x) + +b.c.baz(1)