summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-19 21:21:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-19 21:21:10 -0400
commit18ba48b6b119f07f5c738c7fd36c2d2ede04f67e (patch)
tree17a656943635c42860d4b3751532468f952bd6c3 /tests/test_process.py
parentb257ecb0bdcfae09d74ab95ad621bed19934b555 (diff)
downloadpython-coveragepy-git-18ba48b6b119f07f5c738c7fd36c2d2ede04f67e.tar.gz
We only run on 2.6, 2.7, 3.2, 3.3 now.
--HG-- branch : 4.0
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py29
1 files changed, 13 insertions, 16 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index c49d90a9..d1107e32 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -324,23 +324,20 @@ class ProcessTest(CoverageTest):
out_py = self.run_command("python run_me.py")
self.assertMultiLineEqual(out_cov, out_py)
- if sys.version_info >= (2, 6):
- # Doesn't work in 2.5, and I don't care! For some reason, python -m
- # in 2.5 has __builtins__ as a dictionary instead of a module?
- def test_coverage_run_dashm_is_like_python_dashm(self):
- # These -m commands assume the coverage tree is on the path.
- out_cov = self.run_command("coverage run -m tests.try_execfile")
- out_py = self.run_command("python -m tests.try_execfile")
- self.assertMultiLineEqual(out_cov, out_py)
+ def test_coverage_run_dashm_is_like_python_dashm(self):
+ # These -m commands assume the coverage tree is on the path.
+ out_cov = self.run_command("coverage run -m tests.try_execfile")
+ out_py = self.run_command("python -m tests.try_execfile")
+ self.assertMultiLineEqual(out_cov, out_py)
- def test_coverage_run_dashm_is_like_python_dashm_off_path(self):
- # https://bitbucket.org/ned/coveragepy/issue/242
- tryfile = os.path.join(here, "try_execfile.py")
- self.make_file("sub/__init__.py", "")
- self.make_file("sub/run_me.py", open(tryfile).read())
- out_cov = self.run_command("coverage run -m sub.run_me")
- out_py = self.run_command("python -m sub.run_me")
- self.assertMultiLineEqual(out_cov, out_py)
+ def test_coverage_run_dashm_is_like_python_dashm_off_path(self):
+ # https://bitbucket.org/ned/coveragepy/issue/242
+ tryfile = os.path.join(here, "try_execfile.py")
+ self.make_file("sub/__init__.py", "")
+ self.make_file("sub/run_me.py", open(tryfile).read())
+ out_cov = self.run_command("coverage run -m sub.run_me")
+ out_py = self.run_command("python -m sub.run_me")
+ self.assertMultiLineEqual(out_cov, out_py)
if sys.version_info >= (2, 7):
# Coverage isn't bug-for-bug compatible in the behavior of -m for