diff --git a/django_jenkins/tasks/with_coverage.py b/django_jenkins/tasks/with_coverage.py index 0fdae8a3..1a798094 100644 --- a/django_jenkins/tasks/with_coverage.py +++ b/django_jenkins/tasks/with_coverage.py @@ -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)