Python numpy.testing.Tester() Examples
The following are 1
code examples of numpy.testing.Tester().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
numpy.testing
, or try the search function
.
Example #1
Source File: __init__.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def test(*a, **kw): # Nose never recurses into directories with underscores prefix, so we # need to list those explicitly. Note that numpy.testing.Tester inserts # the top-level package path determined from __file__ to argv unconditionally, # so we only need to add the part that is not otherwise recursed into. import os underscore_modules = ['_lib', '_build_utils'] base_dir = os.path.abspath(os.path.dirname(__file__)) underscore_paths = [os.path.join(base_dir, name) for name in underscore_modules] kw['extra_argv'] = list(kw.get('extra_argv', [])) + underscore_paths return test._tester.test(*a, **kw)