summaryrefslogtreecommitdiff
path: root/test/modules
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-02-06 23:02:12 -0500
committerNed Batchelder <ned@nedbatchelder.com>2011-02-06 23:02:12 -0500
commit2afc485b2724f496c67e0660c9c3683c52634515 (patch)
treedf91bb766f3836f428e533a9a6907569793e45b4 /test/modules
parent50bc61cd0b0a66ec6cc497ea6870765d627fb9be (diff)
downloadpython-coveragepy-git-2afc485b2724f496c67e0660c9c3683c52634515.tar.gz
Add tests and doc for Brandon's -m flag.
Diffstat (limited to 'test/modules')
-rw-r--r--test/modules/pkg1/__main__.py3
-rw-r--r--test/modules/pkg1/runmod2.py3
-rw-r--r--test/modules/pkg1/sub/__main__.py3
-rw-r--r--test/modules/pkg1/sub/runmod3.py3
-rw-r--r--test/modules/runmod1.py3
5 files changed, 15 insertions, 0 deletions
diff --git a/test/modules/pkg1/__main__.py b/test/modules/pkg1/__main__.py
new file mode 100644
index 00000000..66ce5956
--- /dev/null
+++ b/test/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/test/modules/pkg1/runmod2.py b/test/modules/pkg1/runmod2.py
new file mode 100644
index 00000000..b52964cb
--- /dev/null
+++ b/test/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/test/modules/pkg1/sub/__main__.py b/test/modules/pkg1/sub/__main__.py
new file mode 100644
index 00000000..b5be9f1c
--- /dev/null
+++ b/test/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/test/modules/pkg1/sub/runmod3.py b/test/modules/pkg1/sub/runmod3.py
new file mode 100644
index 00000000..3a1ad155
--- /dev/null
+++ b/test/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])
diff --git a/test/modules/runmod1.py b/test/modules/runmod1.py
new file mode 100644
index 00000000..671d81ef
--- /dev/null
+++ b/test/modules/runmod1.py
@@ -0,0 +1,3 @@
+# Used in the tests for run_python_module
+import sys
+print("runmod1: passed %s" % sys.argv[1])