mirror of
https://github.com/jazzband/django-discover-jenkins.git
synced 2026-03-16 22:20:28 +00:00
Add support for coverage 4.0.
* coverage._harvest_data() was renamed to coverage.get_data()
This commit is contained in:
parent
5037a98c1c
commit
a858d0ab5a
1 changed files with 7 additions and 1 deletions
|
|
@ -102,7 +102,13 @@ class CoverageTask(object):
|
|||
|
||||
def teardown_test_environment(self, **kwargs):
|
||||
self.coverage.stop()
|
||||
|
||||
try:
|
||||
self.coverage._harvest_data()
|
||||
except AttributeError:
|
||||
# coverage._harvest_data was renamed to coverage.get_data in
|
||||
# coverage.py 4.0.
|
||||
self.coverage.get_data()
|
||||
|
||||
morfs = [filename for filename in self.coverage.data.measured_files()
|
||||
if self.want_file(filename)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue