summaryrefslogtreecommitdiff
path: root/numpy/testing
Commit message (Collapse)AuthorAgeFilesLines
* ran reindentJarrod Millman2008-08-087-38/+37
|
* Merge from documentation editor.Stefan van der Walt2008-08-051-2/+34
|
* Delay import from inspect to reduce startup time.Alan McIntyre2008-07-301-1/+4
|
* Delay import of shlex to reduce startup time.Alan McIntyre2008-07-301-1/+4
|
* Delay import of difflib to reduce startup time.Alan McIntyre2008-07-301-1/+3
|
* Removed unused import of glob.Alan McIntyre2008-07-301-1/+0
|
* Standardize NumPy import as "import numpy as np".Alan McIntyre2008-07-221-19/+19
|
* Added numpy.testing.verbose, to allow tests to vary output accordingly.Alan McIntyre2008-07-212-2/+36
| | | | | | | 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.
* Comment out extension option since it is not used at present.Alan McIntyre2008-07-191-1/+1
|
* 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-182-5/+4
| | | | 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-182-186/+324
| | | | | | builtin plugin. Removed decorators for NoseTester methods.
* Added the measure function to utils.py in support of SciPy tests.Alan McIntyre2008-07-161-0/+19
|
* Added isfunction and decorate_methods in support of SciPy switching to Alan McIntyre2008-07-151-1/+37
| | | | use numpy.testing.
* 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-132-31/+13
| | | | | 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.
* Use the implicit "import numpy as np" made available to all doctests instead Alan McIntyre2008-07-051-0/+1
| | | | | of explicit imports or dependency on the local scope where the doctest is defined..
* 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-032-10/+41
| | | | | | | | | | | 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).
* Deprecate set_package_path, set_local_path, and restore_path.Alan McIntyre2008-07-031-1/+9
|
* 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.
* Restored parametric.pyAlan McIntyre2008-06-211-0/+305
|
* Restore old test framework classes.Alan McIntyre2008-06-215-31/+630
| | | | | | | | | | | 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-175-29/+60
| | | | | | | | 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-1710-914/+322
| | | | modules.
* added verbose argument to assert_array_equal in assert_equal. Fixes ticket #810.dhuard2008-06-051-1/+1
|
* Make test(all=True) the default.Charles Harris2008-05-211-1/+1
|
* Fix unit test capturing under Python 2.6.Stefan van der Walt2008-05-201-0/+2
|
* ran reindent in preparation for the 1.1 releaseJarrod Millman2008-04-201-1/+1
|
* Correct dependency on missing code.Robert Kern2008-04-172-34/+67
|
* Fix test for assert* with nan values + string formatting issue when handling ↵David Cournapeau2008-04-082-6/+9
| | | | nan.
* Handle nan in assert_array* funcs correctly. All numpy tests passDavid Cournapeau2008-04-081-2/+25
|
* Add basic tests for assert_array_almost_equal.David Cournapeau2008-04-081-35/+47
|
* assert* funcs: Add generic test for rank 3 arrays.David Cournapeau2008-04-071-0/+19
|
* assert* funcs test: add generic test for rank1 arrays for all dtype.David Cournapeau2008-04-071-0/+18
|
* Test assert* funcs for arrays with Nan and rec arrays.David Cournapeau2008-04-071-0/+22
|
* Some more tests for assert_* functions.David Cournapeau2008-04-071-1/+28
|
* Add the tests in setup file for testing package.David Cournapeau2008-04-071-0/+2
|
* Start testing test functions.David Cournapeau2008-04-071-0/+30
|
* Revert comparison function; nan handling broken.David Cournapeau2008-04-071-19/+2
|
* Fix broken detection of nan in comparison function.David Cournapeau2008-04-071-2/+2
|
* Handling nan values for assert_ functions.David Cournapeau2008-04-071-2/+19
|
* Add setupscons.py for pure python packagesDavid Cournapeau2008-01-071-0/+16
|
* Removed dependency on nose.tools. Ripped nose.tools.raise and placed it in ↵Travis Oliphant2008-01-021-1/+35
| | | | numpy.testing
* Replace numpy.distutils.exec_command.splitcmdline with shlex.split instead.cookedm2007-12-261-2/+2
| | | | | | | | It has the same problems as our old numpy.distutils.ccompiler.split_quoted. splitcmdline still exists, but uses shlex.split, and issues a DeprecationWarning This has the positive side effect of not having numpy.distutils pulled in when numpy is imported -- there was a use of splitcmdline in numpy.testing.
* testing/numpytest.py: only handle IgnoreException when we have a testcookedm2007-12-241-1/+2
| | | | | result that we can actually work with (for instance, not nose's ResultProxy objects)
* use 'in' keyword to test dictionary membershipJarrod Millman2007-11-282-4/+5
|
* ran reindent.py to clean up whitespaceJarrod Millman2007-10-291-2/+2
|
* allow TestCase classes to be prefixed with either 'test' or 'Test'Jarrod Millman2007-10-021-1/+1
|