summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
authorscottbelden <scottabelden@gmail.com>2016-06-02 18:09:46 -0400
committerscottbelden <scottabelden@gmail.com>2016-06-02 18:09:46 -0400
commit899192b5bf5303b5308e9d90a14ccf424eb2efe5 (patch)
tree5dfa01a0a6bd745a9223af820227057ef61429bd /tests/test_process.py
parent907b8d880baf567055210f0259347db2e8306aa7 (diff)
downloadpython-coveragepy-git-899192b5bf5303b5308e9d90a14ccf424eb2efe5.tar.gz
Fix __main__.py showing up in help output
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 55dc3b13..e40c4dcb 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -733,6 +733,15 @@ class ProcessTest(CoverageTest):
"Coverage.py warning: Module foo was previously imported, but not measured.\n"
)
+ def test_module_name(self):
+ if sys.version_info < (2, 7):
+ # Python 2.6 thinks that coverage is a package that can't be
+ # executed
+ self.skip("-m doesn't work the same < Python 2.7")
+ # https://bitbucket.org/ned/coveragepy/issues/478/help-shows-silly-program-name-when-running
+ out = self.run_command("python -m coverage")
+ self.assertIn("Use 'coverage help' for help", out)
+
class AliasedCommandTest(CoverageTest):
"""Tests of the version-specific command aliases."""