diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2019-09-07 09:54:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-07 09:54:36 -0700 |
commit | b0180e44ca2271f621652c0c7e84c8121c0c98be (patch) | |
tree | 222facc6ed0840da0e100ae99f5fef17516f6ebe | |
parent | 0fd1e4364c0192577b51bd96c7c077be4a938ad3 (diff) | |
parent | 84cce9261a3f2cdb3fef4abe8d8ea98a1593f2f6 (diff) | |
download | numpy-b0180e44ca2271f621652c0c7e84c8121c0c98be.tar.gz |
Merge pull request #14355 from qwhelan/pytesttester
DOC: clarify that PytestTester is non-public
-rw-r--r-- | numpy/_pytesttester.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/numpy/_pytesttester.py b/numpy/_pytesttester.py index 8d1a3811c..b25224c20 100644 --- a/numpy/_pytesttester.py +++ b/numpy/_pytesttester.py @@ -48,10 +48,9 @@ class PytestTester(object): """ Pytest test runner. - This class is made available in ``numpy.testing``, and a test function - is typically added to a package's __init__.py like so:: + A test function is typically added to a package's __init__.py like so:: - from numpy.testing import PytestTester + from numpy._pytesttester import PytestTester test = PytestTester(__name__).test del PytestTester @@ -68,6 +67,12 @@ class PytestTester(object): module_name : module name The name of the module to test. + Notes + ----- + Unlike the previous ``nose``-based implementation, this class is not + publicly exposed as it performs some ``numpy``-specific warning + suppression. + """ def __init__(self, module_name): self.module_name = module_name |