aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/runtests
diff options
context:
space:
mode:
authorTom Christie2012-09-28 16:01:02 +0100
committerTom Christie2012-09-28 16:01:02 +0100
commitc2bbe628e6755d3613c39b79c1f80d921f6abc18 (patch)
tree80304ab13889fd1264f23e0e6dc57f3c39a28e53 /rest_framework/runtests
parent9f71f8e618555d888fff8edd322c440b49f331bc (diff)
downloaddjango-rest-framework-c2bbe628e6755d3613c39b79c1f80d921f6abc18.tar.bz2
Fix coverage to not include migrations
Diffstat (limited to 'rest_framework/runtests')
-rwxr-xr-xrest_framework/runtests/runcoverage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/runtests/runcoverage.py b/rest_framework/runtests/runcoverage.py
index 5f7fc876..ea2e3d45 100755
--- a/rest_framework/runtests/runcoverage.py
+++ b/rest_framework/runtests/runcoverage.py
@@ -46,7 +46,7 @@ def main():
for (path, dirs, files) in os.walk(project_dir):
# Drop tests and runtests directories from the test coverage report
- if os.path.basename(path) == 'tests' or os.path.basename(path) == 'runtests':
+ if os.path.basename(path) in ['tests', 'runtests', 'migrations']:
continue
# Drop the compat module from coverage, since we're not interested in the coverage