Skip to content

Commit

Permalink
Fix for kmmbvnr#374
Browse files Browse the repository at this point in the history
coverage changed their CoverageData.data member to _data, exposed via
get_data()
  • Loading branch information
mhodgins-roku authored and linuxmaniac committed Feb 8, 2020

Verified

This commit was signed with the committer’s verified signature.
Meulengracht Philip Meulengracht
1 parent 51600e0 commit 2f2ec37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_jenkins/tasks/with_coverage.py
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ def get_morfs(self, coverage, tested_locations, options):
# Exclude by directory
excluded.extend(getattr(settings, 'COVERAGE_EXCLUDES_FOLDERS', []))

return [filename for filename in coverage.data.measured_files()
return [filename for filename in coverage.get_data().measured_files()
if not (os.sep + 'migrations' + os.sep) in filename
if not (os.sep + 'south_migrations' + os.sep) in filename
if any(filename.startswith(location) for location in tested_locations)

0 comments on commit 2f2ec37

Please sign in to comment.