Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | ENH: refactor of docteset plugin management | Matthew Brett | 2011-08-16 | 2 | -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 of | Charles Harris | 2011-04-05 | 2 | -7/+8 | |
| | | | | assert in non-testing files that should be checked for correctness. | |||||
* | STY: Fix up some remaining old-style exceptions. | Charles Harris | 2011-04-05 | 1 | -3/+3 | |
| | | | | I think that is the end of it. | |||||
* | STY: Update exception style, easy ones. | Charles Harris | 2011-04-05 | 1 | -1/+1 | |
| | ||||||
* | STY: Replace remaining old style classes with classes subclassing object. | Charles Harris | 2011-04-05 | 2 | -2/+2 | |
| | ||||||
* | TST: tests for deprecated decorator. | Ralf Gommers | 2011-03-29 | 2 | -10/+37 | |
| | ||||||
* | BUG: fix assert_almost_equal and co. to work with infs. | rgommers | 2011-03-12 | 2 | -17/+35 | |
| | ||||||
* | BUG: did not intend to change default tolerances in assert_allclose. Revert. | rgommers | 2011-03-09 | 1 | -1/+1 | |
| | ||||||
* | DOC: Update the docs for numpy.testing - prefer allclose and nulp funcs. ↵ | rgommers | 2011-03-09 | 1 | -78/+106 | |
| | | | | Closes #1543. | |||||
* | BUG: Fix exception syntax to conform to python 2.4. | Charles Harris | 2011-02-01 | 1 | -1/+1 | |
| | ||||||
* | BUG: core: Fix things so scipy trunk passes all tests (but one) | Mark Wiebe | 2011-01-27 | 1 | -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 code | Mark Wiebe | 2011-01-21 | 1 | -1/+1 | |
| | ||||||
* | ENH: core: Start converting ufunc to new iterator, add PyArray_PromoteTypes | Mark Wiebe | 2011-01-18 | 1 | -6/+13 | |
| | ||||||
* | ENH: Remove type number ordering assumptions in CanCastSafely, ScalarKinds, ↵ | Mark Wiebe | 2010-11-30 | 1 | -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 Virtanen | 2010-09-11 | 1 | -3/+0 | |
| | | | | confusing than useful | |||||
* | ENH: testing: add assert_tol_equal for testing array equality with specified ↵ | Pauli Virtanen | 2010-07-28 | 2 | -1/+60 | |
| | | | | tolerances | |||||
* | ENH: testing: do not exclude array_from_pyobj from tests; it's now fixed to ↵ | Pauli Virtanen | 2010-03-06 | 1 | -1/+0 | |
| | | | | be nose-compatible | |||||
* | BUG: Ignore "invalid value" from abs in testing/utils.py | Charles Harris | 2010-02-21 | 1 | -2/+7 | |
| | ||||||
* | BUG: More workarounds for np.isinf warning in tests. | Charles Harris | 2010-02-21 | 1 | -8/+16 | |
| | ||||||
* | ENH: testing: always enable --detailed-errors assert introspection in nose | Pauli Virtanen | 2010-02-21 | 1 | -0/+3 | |
| | ||||||
* | DEP: Fix deprecation warnings in Python 3.1. The warnings come from the unittest | Charles Harris | 2010-02-20 | 1 | -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 Millman | 2010-02-17 | 1 | -17/+99 | |
| | ||||||
* | ENH: handle complex input for assert_array_almost_equal_nulp. | David Cournapeau | 2010-02-09 | 1 | -3/+6 | |
| | ||||||
* | BUG: fix typo. | David Cournapeau | 2010-02-09 | 1 | -1/+1 | |
| | ||||||
* | TST: add simple test for complex arrays input to assert_array_almost_equal_nulp. | David Cournapeau | 2010-02-09 | 1 | -0/+13 | |
| | ||||||
* | FIX - allow doctest tester to parse config before being replaced by NumpyDocTest | Matthew Brett | 2009-12-29 | 2 | -13/+40 | |
| | ||||||
* | fixed a whole bunch of doctests | Paul Ivanov | 2009-12-28 | 2 | -0/+16 | |
| | ||||||
* | BUG: make assert_equal and assert_almost_equal always display err_msg | Pauli Virtanen | 2009-12-07 | 1 | -8/+5 | |
| | ||||||
* | 3K: testing: clean up syntax that confused 2to3 | Pauli Virtanen | 2009-12-06 | 1 | -2/+3 | |
| | ||||||
* | Fix tests now that ufuncs raise NotImplementedError. | Travis Oliphant | 2009-12-04 | 1 | -6/+4 | |
| | ||||||
* | BUG: fix 2.5 >= try/except/finally. | David Cournapeau | 2009-11-23 | 1 | -5/+6 | |
| | ||||||
* | ENH: add an assert_warns testing utility. | David Cournapeau | 2009-11-23 | 2 | -1/+59 | |
| | ||||||
* | REF: move warning context manager into utils. | David Cournapeau | 2009-11-23 | 2 | -84/+88 | |
| | ||||||
* | BUG: use %g format in assert_array_*_nulp (fix #1297, thanks to Neil Muller) | Pauli Virtanen | 2009-11-13 | 1 | -2/+2 | |
| | ||||||
* | ENH: remove any mention of original python spacing, use ufunc everywhere. | David Cournapeau | 2009-11-10 | 1 | -33/+2 | |
| | ||||||
* | REF: move spacing tests to umath as spacing is now a ufunc. | David Cournapeau | 2009-11-10 | 1 | -39/+0 | |
| | ||||||
* | BUG: wrong exception raised in spacing for incompatible dtype. | David Cournapeau | 2009-10-30 | 1 | -2/+0 | |
| | ||||||
* | STY: remove whitespace. | David Cournapeau | 2009-10-30 | 1 | -3/+3 | |
| | ||||||
* | ENH: add assert_array_max_ulp comparison function. | David Cournapeau | 2009-10-30 | 2 | -1/+65 | |
| | | | | | This new comparison raises an error if the number of representable numbers between two arrays exceeds a tolerance. | |||||
* | ENH: add robust comparison function for floating numbers. | David Cournapeau | 2009-10-30 | 2 | -1/+107 | |
| | | | | | | assert_array_almost_equal_nulp use spacing so that a single tolerance number can be used independently on the amplitude of the floating point number. | |||||
* | ENH: add numpy implementation of F90 spacing function. | David Cournapeau | 2009-10-30 | 2 | -0/+71 | |
| | ||||||
* | ENH: add a function to compute the signed-magnitude interpretation of the ↵ | David Cournapeau | 2009-10-30 | 1 | -0/+24 | |
| | | | | binary repr of a float. | |||||
* | Don't include assert_valid_refcount in numpy.testing.* | Pauli Virtanen | 2009-10-10 | 1 | -2/+6 | |
| | | | | It's a private function used only in two internal regression tests. | |||||
* | Docstring update: testing | Pauli Virtanen | 2009-10-02 | 3 | -114/+422 | |
| | ||||||
* | BUG: fix list/tuple handling in test_almost_equal. | David Cournapeau | 2009-09-21 | 1 | -1/+2 | |
| | | | | We now forward tuple/list instances to test_array_almost_equal. | |||||
* | All non core regressions tests moved to their respective modules. | David Cournapeau | 2009-09-16 | 1 | -1/+16 | |
| | ||||||
* | Import issubdtype from numpy.core directly so that testing.utils does not ↵ | David Cournapeau | 2009-09-16 | 1 | -3/+4 | |
| | | | | depend on numpy.lib. | |||||
* | Fix #1168: fix functionality broken in r7132, and make get_package_path more ↵ | Pauli Virtanen | 2009-08-29 | 1 | -3/+12 | |
| | | | | robust | |||||
* | Hmm, somehow a reference to math.fabs slipped by and didn't show here. Try | Charles Harris | 2009-08-03 | 1 | -1/+1 | |
| | | | | again. | |||||
* | Try another fix for BSD problem. This one uses numpy functions, which is | Charles Harris | 2009-08-03 | 1 | -4/+3 | |
| | | | | probably not the best... |