TST: GH#23922 Add missing match params to pytest.raises
State: closed

- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:
name: Refactor
description: Internal refactoring of code
name: Testing
description: pandas testing functions or related to the test suite

Comments:
xref  #23922 
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=h1) Report
> Merging [#24937](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/83eb2428ceb6257042173582f3f436c2c887aa69?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24937/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24937   +/-   ##
=======================================
  Coverage   92.38%   92.38%           
=======================================
  Files         166      166           
  Lines       52388    52388           
=======================================
  Hits        48397    48397           
  Misses       3991     3991
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.8% <ø> (ø)` | :arrow_up: |
| #single | `42.89% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=footer). Last update [83eb242...bb1b781](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=h1) Report
> Merging [#24937](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/83eb2428ceb6257042173582f3f436c2c887aa69?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24937/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24937   +/-   ##
=======================================
  Coverage   92.38%   92.38%           
=======================================
  Files         166      166           
  Lines       52388    52388           
=======================================
  Hits        48397    48397           
  Misses       3991     3991
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.8% <ø> (ø)` | :arrow_up: |
| #single | `42.89% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=footer). Last update [83eb242...bb1b781](https://codecov.io/gh/pandas-dev/pandas/pull/24937?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

thanks @mike-cramblett 
No prob!