diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-05-07 18:05:24 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-05-10 21:56:29 +0200 |
commit | bfaaefe52fd5ad3cb5d0a1c75061d9866716babe (patch) | |
tree | f0ce608abea0f6760e9445a3806baf680814889c /numpy/testing/nosetester.py | |
parent | 5a64b000f9df6eea36a5fe0f5ef0cfc62a4e63d6 (diff) | |
download | numpy-bfaaefe52fd5ad3cb5d0a1c75061d9866716babe.tar.gz |
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).
Diffstat (limited to 'numpy/testing/nosetester.py')
-rw-r--r-- | numpy/testing/nosetester.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |