summaryrefslogtreecommitdiff
path: root/numpy/testing
Commit message (Collapse)AuthorAgeFilesLines
* BUG: fix running tests with coverage=True.Ralf Gommers2012-05-101-1/+1
| | | | | | | 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).
* FIX: Implement Ralph's suggestion of removing category.Charles Harris2012-04-151-6/+2
|
* BUG: Fix testing failure on missing ImportWarning in Python 2.4.Charles Harris2012-04-151-14/+18
|
* TST: filter ImportWarnings in NoseTester.Ralf Gommers2012-04-141-0/+3
| | | | | | | | | | Warnings show up when a directory with the same name as a Python file or compiled extension is seen which doesn't have an __init__.py file in it. This situation is very common, for example in SciPy where many extensions are created from source files located under a directory with the same name. This filter is located within a context manager, so only filters when running tests.
* DOC: minor correction to NoseTester doc.Ralf Gommers2012-03-041-1/+1
|
* TST: add some string kw options to simplify switching NoseTester behavior.Ralf Gommers2012-03-041-15/+22
|
* TST: add "raise on warning" behavior to NoseTester constructor.Ralf Gommers2012-03-041-19/+31
| | | | | Also document that behavior has to be switched for a release, and remove comments on turning on deprecation warnings that don't apply anymore.
* WRN: A small tweak to make deprecation warnings always at least printMark Wiebe2012-03-041-0/+3
|
* TST,WRN: Add a parameter to control which warnings raise during testingMark Wiebe2012-03-041-7/+14
| | | | | | The default is set to (RuntimeWarning, DeprecationWarning), and the intent is to leave it as this on master, but change it to () immediately after branching for 1.7 in that branch.
* TST: Make RuntimeWarning raise an error during tests, same asMark Wiebe2012-02-081-0/+2
| | | | RegressionWarning
* TST: Make deprecation warnings raise exceptions during test runMark Wiebe2012-02-071-4/+17
|
* ENH: missingdata: Finish count_nonzero as a full-fledged reduction operationMark Wiebe2011-08-271-16/+60
|
* ENH: missingdata: Fix remaining issues in scalar -> array assignment functionMark Wiebe2011-08-271-1/+4
|
* Changed to follow PEP 7Chris Jordan-Squire2011-08-221-1/+1
|
* DOCS: New ufunc creation docsChris Jordan-Squire2011-08-221-1/+1
|
* ENH: refactor doctest plugin to help subclassingMatthew Brett2011-08-161-45/+71
| | | | | | Move numpy-specific parts of the plugin into their own methods, or into class-level defines. This makes it easier to subclass the plugin. This in turn may help keep more eyes on the code.
* ENH: remove unused class definitionMatthew Brett2011-08-161-22/+1
| | | | | | | NumpyDocTestCase definition overwritten further down the file. The deleted class only redefined the ``id`` method with the same code as that in the parent class since before nose 0.10.
* ENH: skip doctests for testsMatthew Brett2011-08-162-11/+9
| | | | | | | | | | | | There are various docstrings show examples of how to run the tests, and give example test output. Obviously the test output changes, and running the doctests for the testing package: import numpy.testing as npt npt.test(doctests=True) will cause several large sets of tests to be run in the rest of the tree. So I skipped these.
* FIX: fix doctest error with empty outputMatthew Brett2011-08-162-1/+21
| | | | | | | | | | | The numpy doctest extension generates an error with empty doctest output; this most often comes about with the +SKIP option. The numpy doctest plugin exposed a nose bug because it accidentally used a different default for the 'doctest-result-variable'. nose bug report here: http://code.google.com/p/python-nose/issues/detail?id=445
* ENH: move doctest tests to own file with ifmainMatthew Brett2011-08-162-29/+35
| | | | | | | The doctesting tests were in the code file, and (for me) rather difficult to run without running lots of other tests. With this change you can run the doctest tests in isolation by executing the test_doctesting.py file.
* ENH: refactor testing to improve subclass supportMatthew Brett2011-08-161-23/+39
| | | | | | | Refactor ``prepare_test_args`` method to make it easier for subclasses to adapt its behavior. This should make it easier for nipy and other projects to use the numpy testing machinery without wholesale copies into their source trees.
* ENH: refactor of docteset plugin managementMatthew Brett2011-08-162-90/+71
| | | | | | | | | | | | | | We previously had a baroque inheritance scheme to deal with the case where the user had normal nose doctests enabled in their environment. However, this scheme didn't deal with bench() routine, and was complicated. This commit uses a null Unplugger plugin to pull the doctest plugin off the nose configuration after it has been initialized. We can use this for bench() and test(), and it allows the doctest module to be enabled (by the user environment) and then thrown away. Also rejigged the docstrings and removed the automated docstring addition as the docstrings have already been copied and adapted in the code.
* STY: Replace assert by assert_ in tests. There remain 124 uses ofCharles Harris2011-04-052-7/+8
| | | | assert in non-testing files that should be checked for correctness.
* STY: Fix up some remaining old-style exceptions.Charles Harris2011-04-051-3/+3
| | | | I think that is the end of it.
* STY: Update exception style, easy ones.Charles Harris2011-04-051-1/+1
|
* STY: Replace remaining old style classes with classes subclassing object.Charles Harris2011-04-052-2/+2
|
* TST: tests for deprecated decorator.Ralf Gommers2011-03-292-10/+37
|
* BUG: fix assert_almost_equal and co. to work with infs.rgommers2011-03-122-17/+35
|
* BUG: did not intend to change default tolerances in assert_allclose. Revert.rgommers2011-03-091-1/+1
|
* DOC: Update the docs for numpy.testing - prefer allclose and nulp funcs. ↵rgommers2011-03-091-78/+106
| | | | Closes #1543.
* BUG: Fix exception syntax to conform to python 2.4.Charles Harris2011-02-011-1/+1
|
* BUG: core: Fix things so scipy trunk passes all tests (but one)Mark Wiebe2011-01-271-3/+4
| | | | | | | With this patch, the latest scipy trunk (7087), built against NumPy 1.5.1, passes all tests when run against the numpy trunk. The single failing test, test_imresize, fails because it tests all float types, and the new 'half' type lacks the precision to pass that test.
* ENH: ufunc: Make many more tests pass with the new ufunc codeMark Wiebe2011-01-211-1/+1
|
* ENH: core: Start converting ufunc to new iterator, add PyArray_PromoteTypesMark Wiebe2011-01-181-6/+13
|
* ENH: Remove type number ordering assumptions in CanCastSafely, ScalarKinds, ↵Mark Wiebe2010-11-301-0/+79
| | | | | | | and CanCoerceScalar Also add print_coercion_tables.py to aid when refactoring type casting/coercion/promotion.
* TST: disable --detailed-errors by default -- the output it gives is more ↵Pauli Virtanen2010-09-111-3/+0
| | | | confusing than useful
* ENH: testing: add assert_tol_equal for testing array equality with specified ↵Pauli Virtanen2010-07-282-1/+60
| | | | tolerances
* ENH: testing: do not exclude array_from_pyobj from tests; it's now fixed to ↵Pauli Virtanen2010-03-061-1/+0
| | | | be nose-compatible
* BUG: Ignore "invalid value" from abs in testing/utils.pyCharles Harris2010-02-211-2/+7
|
* BUG: More workarounds for np.isinf warning in tests.Charles Harris2010-02-211-8/+16
|
* ENH: testing: always enable --detailed-errors assert introspection in nosePauli Virtanen2010-02-211-0/+3
|
* DEP: Fix deprecation warnings in Python 3.1. The warnings come from the unittestCharles Harris2010-02-201-23/+23
| | | | | | | | | module. The fix should be good for Python >= 2.4 and used the following sed script: s/\<failUnless\>/assertTrue/g s/\<failIf\>/assertFalse/g s/\<failUnlessEqual\>/assertEqual/g s/\<failUnlessRaises\>/assertRaises/g
* more docstring updates from pydoc website (thanks to everyone who contributed!)Jarrod Millman2010-02-171-17/+99
|
* ENH: handle complex input for assert_array_almost_equal_nulp.David Cournapeau2010-02-091-3/+6
|
* BUG: fix typo.David Cournapeau2010-02-091-1/+1
|
* TST: add simple test for complex arrays input to assert_array_almost_equal_nulp.David Cournapeau2010-02-091-0/+13
|
* FIX - allow doctest tester to parse config before being replaced by NumpyDocTestMatthew Brett2009-12-292-13/+40
|
* fixed a whole bunch of doctestsPaul Ivanov2009-12-282-0/+16
|
* BUG: make assert_equal and assert_almost_equal always display err_msgPauli Virtanen2009-12-071-8/+5
|
* 3K: testing: clean up syntax that confused 2to3Pauli Virtanen2009-12-061-2/+3
|