summaryrefslogtreecommitdiff
path: root/test/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-10-30 22:31:27 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-10-30 22:31:27 -0400
commit7fccd4a00e8f9b4b76e59df68f30fd2ac0315c0d (patch)
treeb07ca06c7509cc21462a0d8bf9004d95e2c4579b /test/test_process.py
parentb789b8db695207b7a05dcaa6211d0228cbbbe197 (diff)
downloadpython-coveragepy-git-7fccd4a00e8f9b4b76e59df68f30fd2ac0315c0d.tar.gz
Make execution with -m match Python more closely.
Diffstat (limited to 'test/test_process.py')
-rw-r--r--test/test_process.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_process.py b/test/test_process.py
index 4cf5524f..085ac130 100644
--- a/test/test_process.py
+++ b/test/test_process.py
@@ -279,6 +279,12 @@ class ProcessTest(CoverageTest):
out2 = self.run_command("python run_me.py")
self.assertMultiLineEqual(out, out2)
+ def test_coverage_run_dashm_is_like_python_dashm(self):
+ # These -m commands assume the coverage tree is on the path.
+ out = self.run_command("coverage run -m test.try_execfile")
+ out2 = self.run_command("python -m test.try_execfile")
+ self.assertMultiLineEqual(out, out2)
+
if hasattr(os, 'fork'):
def test_fork(self):
self.make_file("fork.py", """\