summaryrefslogtreecommitdiff
path: root/tests/cpydiff/modules3
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-04-28 13:43:07 +1000
committerDamien George <damien.p.george@gmail.com>2020-05-02 17:41:04 +1000
commit309c19d39b8d7556ef60d8a7545978ba8f77ecfe (patch)
tree47f457e09389c6930991574afd565c47b3548067 /tests/cpydiff/modules3
parent73c58150f53d9d828c4fc8fb455cca6831eb8ddd (diff)
tests/cpydiff: Add cpydiff test for __all__ used in imported package.
Diffstat (limited to 'tests/cpydiff/modules3')
-rw-r--r--tests/cpydiff/modules3/__init__.py1
-rw-r--r--tests/cpydiff/modules3/foo.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/cpydiff/modules3/__init__.py b/tests/cpydiff/modules3/__init__.py
new file mode 100644
index 000000000..27a2bf2ad
--- /dev/null
+++ b/tests/cpydiff/modules3/__init__.py
@@ -0,0 +1 @@
+__all__ = ["foo"]
diff --git a/tests/cpydiff/modules3/foo.py b/tests/cpydiff/modules3/foo.py
new file mode 100644
index 000000000..dd9b9d4dd
--- /dev/null
+++ b/tests/cpydiff/modules3/foo.py
@@ -0,0 +1,2 @@
+def hello():
+ print("hello")