From c2bbe628e6755d3613c39b79c1f80d921f6abc18 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 28 Sep 2012 16:01:02 +0100 Subject: [PATCH] Fix coverage to not include migrations --- rest_framework/runtests/runcoverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/runtests/runcoverage.py b/rest_framework/runtests/runcoverage.py index 5f7fc876f..ea2e3d458 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