diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-07 16:13:33 +0300 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-07 16:13:33 +0300 |
| commit | cc45664f714822e7d6443bf6d2a96d4efdd484fd (patch) | |
| tree | 343970cfffe28bb5627777a1defb79546683d35e /astroid/tests/testdata/python3 | |
| parent | 23e59f817bb2fe994e35d64bf06f0234af32053b (diff) | |
| download | astroid-git-cc45664f714822e7d6443bf6d2a96d4efdd484fd.tar.gz | |
Add test for old namespace packages protocol.
Diffstat (limited to 'astroid/tests/testdata/python3')
12 files changed, 9 insertions, 0 deletions
diff --git a/astroid/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py b/astroid/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py new file mode 100644 index 00000000..b0d64337 --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__)
\ No newline at end of file diff --git a/astroid/tests/testdata/python3/data/path_pkg_resources_1/package/foo.py b/astroid/tests/testdata/python3/data/path_pkg_resources_1/package/foo.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkg_resources_1/package/foo.py diff --git a/astroid/tests/testdata/python3/data/path_pkg_resources_2/package/__init__.py b/astroid/tests/testdata/python3/data/path_pkg_resources_2/package/__init__.py new file mode 100644 index 00000000..b0d64337 --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkg_resources_2/package/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__)
\ No newline at end of file diff --git a/astroid/tests/testdata/python3/data/path_pkg_resources_2/package/bar.py b/astroid/tests/testdata/python3/data/path_pkg_resources_2/package/bar.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkg_resources_2/package/bar.py diff --git a/astroid/tests/testdata/python3/data/path_pkg_resources_3/package/__init__.py b/astroid/tests/testdata/python3/data/path_pkg_resources_3/package/__init__.py new file mode 100644 index 00000000..b0d64337 --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkg_resources_3/package/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__)
\ No newline at end of file diff --git a/astroid/tests/testdata/python3/data/path_pkg_resources_3/package/baz.py b/astroid/tests/testdata/python3/data/path_pkg_resources_3/package/baz.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkg_resources_3/package/baz.py diff --git a/astroid/tests/testdata/python3/data/path_pkgutil_1/package/__init__.py b/astroid/tests/testdata/python3/data/path_pkgutil_1/package/__init__.py new file mode 100644 index 00000000..0bfb5a62 --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkgutil_1/package/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__)
\ No newline at end of file diff --git a/astroid/tests/testdata/python3/data/path_pkgutil_1/package/foo.py b/astroid/tests/testdata/python3/data/path_pkgutil_1/package/foo.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkgutil_1/package/foo.py diff --git a/astroid/tests/testdata/python3/data/path_pkgutil_2/package/__init__.py b/astroid/tests/testdata/python3/data/path_pkgutil_2/package/__init__.py new file mode 100644 index 00000000..0bfb5a62 --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkgutil_2/package/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__)
\ No newline at end of file diff --git a/astroid/tests/testdata/python3/data/path_pkgutil_2/package/bar.py b/astroid/tests/testdata/python3/data/path_pkgutil_2/package/bar.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkgutil_2/package/bar.py diff --git a/astroid/tests/testdata/python3/data/path_pkgutil_3/package/__init__.py b/astroid/tests/testdata/python3/data/path_pkgutil_3/package/__init__.py new file mode 100644 index 00000000..0bfb5a62 --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkgutil_3/package/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__)
\ No newline at end of file diff --git a/astroid/tests/testdata/python3/data/path_pkgutil_3/package/baz.py b/astroid/tests/testdata/python3/data/path_pkgutil_3/package/baz.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/astroid/tests/testdata/python3/data/path_pkgutil_3/package/baz.py |
