From 55efd1358bf2e6a9370532ecb108124000f8e93d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 4 Oct 2015 18:33:37 +0200 Subject: [PATCH] Work around coverage.py bug in test_check_coverage. Fixes #981. See https://bitbucket.org/ned/coveragepy/issues/422/ --- tests/unit/scripts/test_check_coverage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/scripts/test_check_coverage.py b/tests/unit/scripts/test_check_coverage.py index e9df9644c..0673c69b4 100644 --- a/tests/unit/scripts/test_check_coverage.py +++ b/tests/unit/scripts/test_check_coverage.py @@ -135,6 +135,8 @@ def test_untested_branches(covtest): def func2(arg): if arg: pass + else: + pass def func(): func2(True)