summaryrefslogtreecommitdiff
path: root/astroid/tests/testdata/python3
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-05-07 16:13:33 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2016-05-07 16:13:33 +0300
commitcc45664f714822e7d6443bf6d2a96d4efdd484fd (patch)
tree343970cfffe28bb5627777a1defb79546683d35e /astroid/tests/testdata/python3
parent23e59f817bb2fe994e35d64bf06f0234af32053b (diff)
downloadastroid-git-cc45664f714822e7d6443bf6d2a96d4efdd484fd.tar.gz
Add test for old namespace packages protocol.
Diffstat (limited to 'astroid/tests/testdata/python3')
-rw-r--r--astroid/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py1
-rw-r--r--astroid/tests/testdata/python3/data/path_pkg_resources_1/package/foo.py0
-rw-r--r--astroid/tests/testdata/python3/data/path_pkg_resources_2/package/__init__.py1
-rw-r--r--astroid/tests/testdata/python3/data/path_pkg_resources_2/package/bar.py0
-rw-r--r--astroid/tests/testdata/python3/data/path_pkg_resources_3/package/__init__.py1
-rw-r--r--astroid/tests/testdata/python3/data/path_pkg_resources_3/package/baz.py0
-rw-r--r--astroid/tests/testdata/python3/data/path_pkgutil_1/package/__init__.py2
-rw-r--r--astroid/tests/testdata/python3/data/path_pkgutil_1/package/foo.py0
-rw-r--r--astroid/tests/testdata/python3/data/path_pkgutil_2/package/__init__.py2
-rw-r--r--astroid/tests/testdata/python3/data/path_pkgutil_2/package/bar.py0
-rw-r--r--astroid/tests/testdata/python3/data/path_pkgutil_3/package/__init__.py2
-rw-r--r--astroid/tests/testdata/python3/data/path_pkgutil_3/package/baz.py0
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