TST: insert 'match' to bare pytest raises in pandas/tests/tools/test_…
- [ ] ref https://github.com/pandas-dev/pandas/issues/30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Hi,
can anyone add this label hacktoberfest-accepted thanks @krajatcl  this PR is causing datetime tests to fail

https://dev.azure.com/pandas-dev/pandas/_build?definitionId=1&_a=summary ok can u revert the commit in a new PR? Done: #37048