diff options
Diffstat (limited to 'tests/modules/pkg1')
-rw-r--r-- | tests/modules/pkg1/__init__.py | 3 | ||||
-rw-r--r-- | tests/modules/pkg1/__main__.py | 3 | ||||
-rw-r--r-- | tests/modules/pkg1/p1a.py | 5 | ||||
-rw-r--r-- | tests/modules/pkg1/p1b.py | 3 | ||||
-rw-r--r-- | tests/modules/pkg1/p1c.py | 3 | ||||
-rw-r--r-- | tests/modules/pkg1/runmod2.py | 3 | ||||
-rw-r--r-- | tests/modules/pkg1/sub/__init__.py | 0 | ||||
-rw-r--r-- | tests/modules/pkg1/sub/__main__.py | 3 | ||||
-rw-r--r-- | tests/modules/pkg1/sub/ps1a.py | 3 | ||||
-rw-r--r-- | tests/modules/pkg1/sub/runmod3.py | 3 |
10 files changed, 29 insertions, 0 deletions
diff --git a/tests/modules/pkg1/__init__.py b/tests/modules/pkg1/__init__.py new file mode 100644 index 00000000..2dfeb9c1 --- /dev/null +++ b/tests/modules/pkg1/__init__.py @@ -0,0 +1,3 @@ +# This __init__.py has a module-level docstring, which is counted as a +# statement. +"""A simple package for testing with.""" diff --git a/tests/modules/pkg1/__main__.py b/tests/modules/pkg1/__main__.py new file mode 100644 index 00000000..66ce5956 --- /dev/null +++ b/tests/modules/pkg1/__main__.py @@ -0,0 +1,3 @@ +# Used in the tests for run_python_module +import sys +print("pkg1.__main__: passed %s" % sys.argv[1]) diff --git a/tests/modules/pkg1/p1a.py b/tests/modules/pkg1/p1a.py new file mode 100644 index 00000000..be5fcdd3 --- /dev/null +++ b/tests/modules/pkg1/p1a.py @@ -0,0 +1,5 @@ +import os, sys + +# Invoke functions in os and sys so we can see if we measure code there. +x = sys.getcheckinterval() +y = os.getcwd() diff --git a/tests/modules/pkg1/p1b.py b/tests/modules/pkg1/p1b.py new file mode 100644 index 00000000..59d6fb54 --- /dev/null +++ b/tests/modules/pkg1/p1b.py @@ -0,0 +1,3 @@ +x = 1 +y = 2 +z = 3 diff --git a/tests/modules/pkg1/p1c.py b/tests/modules/pkg1/p1c.py new file mode 100644 index 00000000..a9aeef04 --- /dev/null +++ b/tests/modules/pkg1/p1c.py @@ -0,0 +1,3 @@ +a = 1 +b = 2 +c = 3 diff --git a/tests/modules/pkg1/runmod2.py b/tests/modules/pkg1/runmod2.py new file mode 100644 index 00000000..b52964cb --- /dev/null +++ b/tests/modules/pkg1/runmod2.py @@ -0,0 +1,3 @@ +# Used in the tests for run_python_module +import sys +print("runmod2: passed %s" % sys.argv[1]) diff --git a/tests/modules/pkg1/sub/__init__.py b/tests/modules/pkg1/sub/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/modules/pkg1/sub/__init__.py diff --git a/tests/modules/pkg1/sub/__main__.py b/tests/modules/pkg1/sub/__main__.py new file mode 100644 index 00000000..b5be9f1c --- /dev/null +++ b/tests/modules/pkg1/sub/__main__.py @@ -0,0 +1,3 @@ +# Used in the tests for run_python_module +import sys +print("pkg1.sub.__main__: passed %s" % sys.argv[1]) diff --git a/tests/modules/pkg1/sub/ps1a.py b/tests/modules/pkg1/sub/ps1a.py new file mode 100644 index 00000000..4b6a15cc --- /dev/null +++ b/tests/modules/pkg1/sub/ps1a.py @@ -0,0 +1,3 @@ +d = 1 +e = 2 +f = 3 diff --git a/tests/modules/pkg1/sub/runmod3.py b/tests/modules/pkg1/sub/runmod3.py new file mode 100644 index 00000000..3a1ad155 --- /dev/null +++ b/tests/modules/pkg1/sub/runmod3.py @@ -0,0 +1,3 @@ +# Used in the tests for run_python_module +import sys +print("runmod3: passed %s" % sys.argv[1]) |