diff options
-rw-r--r-- | metacov.ini | 2 | ||||
-rw-r--r-- | tests/coveragetest.py | 6 | ||||
-rw-r--r-- | tests/helpers.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/metacov.ini b/metacov.ini index 1ec94fda..53b9f409 100644 --- a/metacov.ini +++ b/metacov.ini @@ -78,7 +78,7 @@ partial_branches = if .* env.IRONPYTHON ignore_errors = true -precision = 1 +precision = 2 [paths] source = diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 8e5f2b0a..9b7fe167 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -125,7 +125,7 @@ class CoverageTest( def check_coverage( self, text, lines=None, missing="", report="", excludes=None, partials="", - arcz=None, arcz_missing="", arcz_unpredicted="", + arcz=None, arcz_missing=None, arcz_unpredicted=None, arcs=None, arcs_missing=None, arcs_unpredicted=None, ): """Check the coverage measurement of `text`. @@ -154,9 +154,9 @@ class CoverageTest( if arcs is None and arcz is not None: arcs = arcz_to_arcs(arcz) - if arcs_missing is None: + if arcs_missing is None and arcz_missing is not None: arcs_missing = arcz_to_arcs(arcz_missing) - if arcs_unpredicted is None: + if arcs_unpredicted is None and arcz_unpredicted is not None: arcs_unpredicted = arcz_to_arcs(arcz_unpredicted) # Start up coverage.py. diff --git a/tests/helpers.py b/tests/helpers.py index 1348aad6..a96b793e 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -198,7 +198,7 @@ def arcs_to_arcz_repr(arcs): """ repr_list = [] - for a, b in arcs: + for a, b in (arcs or ()): line = repr((a, b)) line += " # " line += _arcs_to_arcz_repr_one(a) |