From bfaaefe52fd5ad3cb5d0a1c75061d9866716babe Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Mon, 7 May 2012 18:05:24 +0200 Subject: BUG: fix running tests with coverage=True. The --cover-inclusive argument means that coverage.py tries to include every single .py file in the source tree in the coverage report. This leads to test errors, because it tries to import files like setupscons.py (which will of course directly fail for anyone not having numscons installed). --- numpy/testing/nosetester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy') diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index 024c6e25f..a776faa43 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -239,7 +239,7 @@ class NoseTester(object): # our way of doing coverage if coverage: argv+=['--cover-package=%s' % self.package_name, '--with-coverage', - '--cover-tests', '--cover-inclusive', '--cover-erase'] + '--cover-tests', '--cover-erase'] # construct list of plugins import nose.plugins.builtin from noseclasses import KnownFailure, Unplugger -- cgit v1.2.1