summaryrefslogtreecommitdiff
path: root/test/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-10-30 23:09:39 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-10-30 23:09:39 -0400
commitcd9f3feac10f6c6b50909f58a645c471a9d4101e (patch)
treeb519e297acb938a2cd28f6f23a450d09c0928d7a /test/test_process.py
parent7fccd4a00e8f9b4b76e59df68f30fd2ac0315c0d (diff)
downloadpython-coveragepy-git-cd9f3feac10f6c6b50909f58a645c471a9d4101e.tar.gz
Make stuff work in other Python versions. Some stuff isn't *quite* right <2.6. #155
Diffstat (limited to 'test/test_process.py')
-rw-r--r--test/test_process.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test_process.py b/test/test_process.py
index 085ac130..b40eac12 100644
--- a/test/test_process.py
+++ b/test/test_process.py
@@ -279,11 +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 sys.version_info >= (2, 6): # Doesn't work in 2.5, and I don't care!
+ 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):