summaryrefslogtreecommitdiff
path: root/numpy/_pytesttester.py
diff options
context:
space:
mode:
authorEdgar Giovanni Lepe <lepe.edgar10@gmail.com>2018-12-02 18:17:46 -0800
committerEdgar Giovanni Lepe <lepe.edgar10@gmail.com>2018-12-02 18:17:46 -0800
commitb1ffafbf4b93fb5c01e0216ee018e64596d7f33b (patch)
treeb0d4c1abe5bb03d5669ec1f6fb7e2acde27998d0 /numpy/_pytesttester.py
parent04c2f33843782cd27a16f919477b1b27c4b01e5a (diff)
downloadnumpy-b1ffafbf4b93fb5c01e0216ee018e64596d7f33b.tar.gz
DOC: fix example for __call__. See #12451
Diffstat (limited to 'numpy/_pytesttester.py')
-rw-r--r--numpy/_pytesttester.py16
1 files changed, 5 insertions, 11 deletions
diff --git a/numpy/_pytesttester.py b/numpy/_pytesttester.py
index 30ecc69c7..8d1a3811c 100644
--- a/numpy/_pytesttester.py
+++ b/numpy/_pytesttester.py
@@ -105,24 +105,18 @@ class PytestTester(object):
Notes
-----
- Each NumPy module exposes `test` in its namespace to run all tests for it.
- For example, to run all tests for numpy.lib:
+ Each NumPy module exposes `test` in its namespace to run all tests for
+ it. For example, to run all tests for numpy.lib:
>>> np.lib.test() #doctest: +SKIP
Examples
--------
>>> result = np.lib.test() #doctest: +SKIP
- Running unit tests for numpy.lib
...
- Ran 976 tests in 3.933s
-
- OK
-
- >>> result.errors #doctest: +SKIP
- []
- >>> result.knownfail #doctest: +SKIP
- []
+ 1023 passed, 2 skipped, 6 deselected, 1 xfailed in 10.39 seconds
+ >>> result
+ True
"""
import pytest