(attr)
| 76 | del PytestTester |
| 77 | |
| 78 | def __getattr__(attr): |
| 79 | # Warn for reprecated attributes |
| 80 | import math |
| 81 | import warnings |
| 82 | |
| 83 | if attr == 'math': |
| 84 | warnings.warn( |
| 85 | "`np.lib.math` is a deprecated alias for the standard library " |
| 86 | "`math` module (Deprecated Numpy 1.25). Replace usages of " |
| 87 | "`numpy.lib.math` with `math`", DeprecationWarning, stacklevel=2) |
| 88 | return math |
| 89 | else: |
| 90 | raise AttributeError("module {!r} has no attribute " |
| 91 | "{!r}".format(__name__, attr)) |
| 92 |