`pymc.testing` attempts to import `pytest` but `pytest` is not in `pymc` install requirements
Describe the issue:
a41d5244b8ec78372751924ba0484ed02d57b2cb included the testing.py module at the root level of pymc. setup.py says that the install requires are taken from requirements.txt, and that file does not include pytest.
This makes from pymc.testing import anything fail unless you already have installed pytest. Should pymc raise some kind of informative message instead of saying ModuleNotFoundError: No module named 'pytest'?
Reproduceable code example:
from pymc import testing
Error message:
ModuleNotFoundError: No module named 'pytest'
PyMC version information:
pymc version: 5.11.0
Context for the issue:
No response
Maybe we should import pytest locally, because not everything in there requires it. We are only using pytest for the pytest.warns feature
Yes, that's fine with me.
I would like to take this (as part of the hackathon)