This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / _pytesttester / PytestTester

class

numpy._pytesttester:PytestTester

source: build-install/usr/lib/python3.14/site-packages/numpy/_pytesttester.py :45

Signature

class   PytestTester ( module_name )

Members

Summary

Pytest test runner.

Extended Summary

A test function is typically added to a package's __init__.py like so

from numpy._pytesttester import PytestTester
test = PytestTester(__name__).test
del PytestTester

Calling this test function finds and runs all tests associated with the module and all its sub-modules.

Parameters

module_name : module name

The name of the module to test.

Attributes

module_name : str

Full path to the package to test.

Notes

Unlike the previous nose-based implementation, this class is not publicly exposed as it performs some numpy-specific warning suppression.

Aliases

  • numpy._pytesttester.PytestTester