summaryrefslogtreecommitdiff
path: root/numpy/testing/nosetester.py
Commit message (Collapse)AuthorAgeFilesLines
* TST: disable --detailed-errors by default -- the output it gives is more ↵Pauli Virtanen2010-09-111-3/+0
| | | | confusing than useful
* ENH: testing: do not exclude array_from_pyobj from tests; it's now fixed to ↵Pauli Virtanen2010-03-061-1/+0
| | | | be nose-compatible
* ENH: testing: always enable --detailed-errors assert introspection in nosePauli Virtanen2010-02-211-0/+3
|
* FIX - allow doctest tester to parse config before being replaced by NumpyDocTestMatthew Brett2009-12-291-9/+2
|
* Docstring update: testingPauli Virtanen2009-10-021-34/+156
|
* Fix #1168: fix functionality broken in r7132, and make get_package_path more ↵Pauli Virtanen2009-08-291-3/+12
| | | | robust
* Fixed #1168: more robust NoseTester package name detection (patch by Gaël ↵Pauli Virtanen2009-07-121-6/+11
| | | | Varoquaux)
* Remove the following deprecated items from numpy.testing:Alan McIntyre2008-12-311-66/+40
| | | | | | | | | | | | | | | - ParametricTestCase - The following arguments from numpy.testing.Tester.test(): level, verbosity, all, sys_argv, testcase_pattern - Path manipulation functions: set_package_path, set_local_path, restore_path - NumpyTestCase, NumpyTest Also separated testing parameter setup from NoseTester.test into NoseTester.prepare_test_args for use in a utility script for valgrind testing (see NumPy ticket #784).
* Renamed classes to conform to PEP 8.Alan McIntyre2008-09-041-2/+2
|
* Replaced numpy.testing.decorators.skipknownfailure with knownfailureif, Alan McIntyre2008-09-041-2/+2
| | | | | which allows flagging tests as known failures rather than skips. Updated test_umath to use knownfailureif.
* reindenting prior to releaseJarrod Millman2008-09-021-1/+1
|
* Bail out of _docmethod earlier if method has no docstring.Alan McIntyre2008-08-271-2/+4
|
* Make _docmethod work correctly when run with -OOAlan McIntyre2008-08-271-1/+2
|
* Added benchmarks directory to lib/setup.py so that numpy.lib benchmarks are Alan McIntyre2008-08-261-15/+24
| | | | | available in an installed NumPy. Display system configuration information when benchmarks are run.
* ran reindentJarrod Millman2008-08-081-17/+16
|
* Added numpy.testing.verbose, to allow tests to vary output accordingly.Alan McIntyre2008-07-211-0/+18
| | | | | | | Added numpy.testing.print_assert_equal, to allow removing the multiple identical implementations of this function in SciPy tests. Display version info for NumPy, Python, and nose (and SciPy when running SciPy tests), in a manner similar to the original test framework.
* Instead of importing nose plugins, use the existing list of classes that Alan McIntyre2008-07-191-7/+16
| | | | | | nose.plugins.builtins imports. If --with-doctest is included in extra_argv, remove it and use the NumPy doctester instead.
* Comment cleanup.Alan McIntyre2008-07-181-1/+1
| | | | Fixed __import__ calls for Python 2.4 (__import__ doesn't take keyword args in 2.4).
* Use a subclass of the nose doctest plugin instead of monkeypatching the ↵Alan McIntyre2008-07-181-186/+75
| | | | | | builtin plugin. Removed decorators for NoseTester methods.
* Reset doctest.master on each test run to avoid messages about "'__main__' in ↵Alan McIntyre2008-07-151-0/+4
| | | | | | both testers" when test() is run multiple times.
* Replaced utils.raises implementation with the nose function.Alan McIntyre2008-07-131-1/+4
| | | | | Added utils.assert_raises (uses the function from nose). Wrapped text for test() deprecation warning.
* Updated doctest for NoseTester to reflect actual usage, and added Alan McIntyre2008-07-091-7/+14
| | | | | | | | | __file__ = '__main__' to doctest context to allow the updated test to run correctly. Added setupscons.py and setup.py to the list of files to ignore when looking for doctests. Cleaned up docstrings for readability.
* Fix setup script. Exclude test that requires building from the main test suite.Robert Kern2008-07-031-0/+1
|
* Fixed line continuation in doctest for setastest.Alan McIntyre2008-07-031-9/+40
| | | | | | | | | | | Remove unnecessary "import re". Limit doctest execution environment to "import numpy as np". Save and restore print options after each doctest (to clean up after some doctests that change them). Enable ellipsis for all doctests. Remove parameter to NumpyDocTestCase constructor that was specific to nose 0.11. Monkeypatch wantFile of doctest plugin to skip Python files related to the build process (scons_support.py and generate_numpy_api.py).
* Customize behavior of nose doctests:Alan McIntyre2008-07-011-9/+128
| | | | | | | | | | | | | | | | - Adding "#random" to an expected output line will skip the comparison with actual output (but the command is still executed). - All doctests have the numpy module available in their execution context as "np". - Whitespace normalization is enabled for all doctests executed via nose. Doctests added to check that the above behaviors are available. Nose version check/message cleanup. Fix typo in doctest for NoseTester (was still referencing scipy.testing). Rewrapped comments/docstrings to 80 columns.
* Restore old test framework classes.Alan McIntyre2008-06-211-14/+89
| | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc.
* Update README.txt to indicate nose version dependency, and port SciPy r4424 ↵Alan McIntyre2008-06-171-1/+21
| | | | | | | | to NumPy (prevent import of nose until actual execution of tests). Restored "raises" function to numpy/testing/utils.py until it can be replaced with the function of the same name from nose.tools after the lazy import.
* Switched to use nose to run tests. Added test and bench functions to all ↵Alan McIntyre2008-06-171-0/+140
modules.