REF: Add more pytest idiom to test_holiday.py
State: closed


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

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25204?src=pr&el=h1) Report
> Merging [#25204](https://codecov.io/gh/pandas-dev/pandas/pull/25204?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/638ddebaa7da1e569836a5b89593b120dbbf491c?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #25204      +/-   ##
==========================================
- Coverage   92.35%   92.34%   -0.01%     
==========================================
  Files         166      166              
  Lines       52314    52314              
==========================================
- Hits        48312    48311       -1     
- Misses       4002     4003       +1
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25204?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25204/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `87.95% <0%> (-0.1%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25204?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/25204?src=pr&el=footer). Last update [638ddeb...233c242](https://codecov.io/gh/pandas-dev/pandas/pull/25204?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/25204?src=pr&el=h1) Report
> Merging [#25204](https://codecov.io/gh/pandas-dev/pandas/pull/25204?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/638ddebaa7da1e569836a5b89593b120dbbf491c?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #25204      +/-   ##
==========================================
- Coverage   92.35%   92.34%   -0.01%     
==========================================
  Files         166      166              
  Lines       52314    52314              
==========================================
- Hits        48312    48311       -1     
- Misses       4002     4003       +1
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25204?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25204/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `87.95% <0%> (-0.1%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25204?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/25204?src=pr&el=footer). Last update [638ddeb...233c242](https://codecov.io/gh/pandas-dev/pandas/pull/25204?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

sure. thanks.