File: routines.testing.rst

package info (click to toggle)
python-numpy 1%3A1.12.1-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 23,568 kB
  • sloc: ansic: 146,995; python: 98,089; cpp: 1,112; makefile: 425; f90: 307; sh: 173; fortran: 169; perl: 58
file content (52 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Test Support (:mod:`numpy.testing`)
===================================

.. currentmodule:: numpy.testing

Common test support for all numpy test scripts.

This single module should provide all the common functionality for numpy
tests in a single location, so that test scripts can just import it and
work right away.


Asserts
-------
.. autosummary::
   :toctree: generated/

   assert_almost_equal
   assert_approx_equal
   assert_array_almost_equal
   assert_allclose
   assert_array_almost_equal_nulp
   assert_array_max_ulp
   assert_array_equal
   assert_array_less
   assert_equal
   assert_raises
   assert_raises_regex
   assert_warns
   assert_string_equal

Decorators
----------
.. autosummary::
   :toctree: generated/

   decorators.deprecated
   decorators.knownfailureif
   decorators.setastest
   decorators.skipif
   decorators.slow
   decorate_methods


Test Running
------------
.. autosummary::
   :toctree: generated/

   Tester
   run_module_suite
   rundocs