summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/namespace_pkgs
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2014-03-29 21:57:44 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2014-03-29 21:57:44 (GMT)
commitc4bbd7a49228efa15a423747b48334df48eb922d (patch)
treee931f366736ba54e998ae699c2e474341796e92f /Lib/test/test_importlib/namespace_pkgs
parent762bee299e25ad1feec5152abd3af9c53a4fb84a (diff)
downloadcpython-c4bbd7a49228efa15a423747b48334df48eb922d.zip
cpython-c4bbd7a49228efa15a423747b48334df48eb922d.tar.gz
cpython-c4bbd7a49228efa15a423747b48334df48eb922d.tar.bz2
Issue #21097: Move test_namespace_pkgs into test_importlib.
Diffstat (limited to 'Lib/test/test_importlib/namespace_pkgs')
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/both_portions/foo/one.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/both_portions/foo/two.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/missing_directory.zipbin0 -> 515 bytes
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty0
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/nested_portion1.zipbin0 -> 556 bytes
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py0
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/portion1/foo/one.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/portion2/foo/two.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/project1/parent/child/one.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/project2/parent/child/two.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/project3/parent/child/three.py1
-rw-r--r--Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zipbin0 -> 332 bytes
14 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/one.py b/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/one.py
new file mode 100644
index 0000000..3080f6f
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/one.py
@@ -0,0 +1 @@
+attr = 'both_portions foo one'
diff --git a/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/two.py b/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/two.py
new file mode 100644
index 0000000..4131d3d
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/both_portions/foo/two.py
@@ -0,0 +1 @@
+attr = 'both_portions foo two'
diff --git a/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip b/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip
new file mode 100644
index 0000000..836a910
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/missing_directory.zip
Binary files differ
diff --git a/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py b/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py
new file mode 100644
index 0000000..43cbedb
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py
@@ -0,0 +1 @@
+attr = 'in module'
diff --git a/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty b/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty
diff --git a/Lib/test/test_importlib/namespace_pkgs/nested_portion1.zip b/Lib/test/test_importlib/namespace_pkgs/nested_portion1.zip
new file mode 100644
index 0000000..8d22406
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/nested_portion1.zip
Binary files differ
diff --git a/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py b/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py
diff --git a/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py b/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py
new file mode 100644
index 0000000..d8f5c83
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py
@@ -0,0 +1 @@
+attr = 'portion1 foo one'
diff --git a/Lib/test/test_importlib/namespace_pkgs/portion1/foo/one.py b/Lib/test/test_importlib/namespace_pkgs/portion1/foo/one.py
new file mode 100644
index 0000000..d8f5c83
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/portion1/foo/one.py
@@ -0,0 +1 @@
+attr = 'portion1 foo one'
diff --git a/Lib/test/test_importlib/namespace_pkgs/portion2/foo/two.py b/Lib/test/test_importlib/namespace_pkgs/portion2/foo/two.py
new file mode 100644
index 0000000..d092e1e
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/portion2/foo/two.py
@@ -0,0 +1 @@
+attr = 'portion2 foo two'
diff --git a/Lib/test/test_importlib/namespace_pkgs/project1/parent/child/one.py b/Lib/test/test_importlib/namespace_pkgs/project1/parent/child/one.py
new file mode 100644
index 0000000..2776fcd
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/project1/parent/child/one.py
@@ -0,0 +1 @@
+attr = 'parent child one'
diff --git a/Lib/test/test_importlib/namespace_pkgs/project2/parent/child/two.py b/Lib/test/test_importlib/namespace_pkgs/project2/parent/child/two.py
new file mode 100644
index 0000000..8b037bc
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/project2/parent/child/two.py
@@ -0,0 +1 @@
+attr = 'parent child two'
diff --git a/Lib/test/test_importlib/namespace_pkgs/project3/parent/child/three.py b/Lib/test/test_importlib/namespace_pkgs/project3/parent/child/three.py
new file mode 100644
index 0000000..f8abfe1
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/project3/parent/child/three.py
@@ -0,0 +1 @@
+attr = 'parent child three'
diff --git a/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip b/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip
new file mode 100644
index 0000000..3b866c9
--- /dev/null
+++ b/Lib/test/test_importlib/namespace_pkgs/top_level_portion1.zip
Binary files differ