diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_api.py | 4 | ||||
-rw-r--r-- | tests/test_arcs.py | 4 | ||||
-rw-r--r-- | tests/test_oddball.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 30690362..b4ae7482 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -378,8 +378,8 @@ class SourceOmitIncludeTest(OmitIncludeTestsMixin, CoverageTest): cov.start() import usepkgs # pragma: nested # pylint: disable=import-error,unused-variable cov.stop() # pragma: nested - cov._harvest_data() # private! sshhh... - summary = cov.data.summary() + data = cov.get_data() + summary = data.summary() for k, v in list(summary.items()): assert k.endswith(".py") summary[k[:-3]] = v diff --git a/tests/test_arcs.py b/tests/test_arcs.py index c0cbac7c..63120616 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -760,6 +760,6 @@ class LineDataTest(CoverageTest): self.start_import_stop(cov, "fun1") - cov._harvest_data() - fun1_lines = cov.data.line_data()[abs_file("fun1.py")] + data = cov.get_data() + fun1_lines = data.line_data()[abs_file("fun1.py")] self.assertEqual(fun1_lines, [1, 2, 5]) diff --git a/tests/test_oddball.py b/tests/test_oddball.py index 6fa512d8..268624f7 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -318,8 +318,8 @@ class ExceptionTest(CoverageTest): # Clean the line data and compare to expected results. # The filenames are absolute, so keep just the base. - cov._harvest_data() # private! sshhh... - lines = cov.data.line_data() + data = cov.get_data() + lines = data.line_data() clean_lines = {} for f, llist in lines.items(): # f is a path to a Python module, so we drop the '.py' to get |