summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Douard <david.douard@logilab.fr>2007-06-18 12:12:05 +0200
committerDavid Douard <david.douard@logilab.fr>2007-06-18 12:12:05 +0200
commitf4b2fb4c9671b11a5adbaccef0b3036857d18f2c (patch)
tree7b99e4319642ffe5de94c075298795aa3a9ba234
parent86525fb8234a100ef3a445d8dca44fddf4ae04e0 (diff)
downloadlogilab-common-f4b2fb4c9671b11a5adbaccef0b3036857d18f2c.tar.gz
small cleanup (hand made commit from alf's repo, for technical reasons)
-rw-r--r--pytest.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/pytest.py b/pytest.py
index aff35fe..a1a03cc 100644
--- a/pytest.py
+++ b/pytest.py
@@ -10,7 +10,7 @@ pytest one (will run both test_thisone and test_thatone)
pytest path/to/mytests.py -s not (will skip test_notthisone)
pytest --coverage test_foo.py
- (only of logilab.devtools is available)
+ (only if logilab.devtools is available)
"""
import os, sys
@@ -321,13 +321,11 @@ def parseargs():
try:
from logilab.devtools.lib.coverage import Coverage
- except ImportError:
- print "kouch kouch"
- pass
- else:
parser.add_option('--coverage', dest="coverage", default=False,
action="store_true",
help="run tests with pycoverage (conflicts with --pdb)")
+ except ImportError:
+ pass
# parse the command line
options, args = parser.parse_args()