Skip check_coverage.py with --lf.

This commit is contained in:
Florian Bruhin 2015-11-13 22:43:12 +01:00
parent b61462ccb8
commit 9607fae935
2 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,8 @@ def check(fileobj, perfect_files):
raise Skipped("because -k is given.")
elif '-m' in sys.argv[1:]:
raise Skipped("because -m is given.")
elif '--lf' in sys.argv[1:]:
raise Skipped("because --lf is given.")
perfect_src_files = [e[1] for e in perfect_files]

View File

@ -166,6 +166,7 @@ def test_tested_unlisted(covtest):
@pytest.mark.parametrize('args, reason', [
(['-k', 'foo'], "because -k is given."),
(['-m', 'foo'], "because -m is given."),
(['--lf'], "because --lf is given."),
(['blah', '-m', 'foo'], "because -m is given."),
(['tests/foo'], "because there is nothing to check."),
])