DOC/CLN: pd.test
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).


hypothesis is imported unconditionally within the tests; won't that make pytest collection fail if it's not available? Similarly, pytest is still listed as a required dependency, why do optional import? > hypothesis is imported unconditionally within the tests; won't that make pytest collection fail if it's not available?

I believe so, yes

> pytest is still listed as a required dependency, why do optional import?

I don't think it's listed as a required dependency to install pandas (not that I can find), but it is required to run `pd.test` so I think that makes pytest an optional dependency.  yep this looks right.