TST: use s3_resource fixture consistently
State: closed

- [x] split off from #23731
- [x] tests modified / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

There are two boto tests that are not using the dedicated `s3_resource` fixture which takes care of all the mocking etc. This PR adapts those tests accordingly, which also allows unified treatment of things like #23754.


Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: IO Data
description: IO issues that don't fit into a more specific label

Comments:
Hello @h-vetinari! Thanks for submitting the PR.

 - There are no PEP8 issues in the file [`pandas/tests/io/json/test_compression.py`](https://github.com/h-vetinari/pandas/blob/f9c1e3dbc8241b2295320af6b6b801ead85c04de/pandas/tests/io/json/test_compression.py) !

 - There are no PEP8 issues in the file [`pandas/tests/io/test_excel.py`](https://github.com/h-vetinari/pandas/blob/f9c1e3dbc8241b2295320af6b6b801ead85c04de/pandas/tests/io/test_excel.py) !


# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=h1) Report
> Merging [#24073](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/3fe697f3c9dcb0c0a7a9b91c0098d31b39f51fef?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/24073/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24073   +/-   ##
=======================================
  Coverage   42.51%   42.51%           
=======================================
  Files         161      161           
  Lines       51689    51689           
=======================================
  Hits        21974    21974           
  Misses      29715    29715
```

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


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24073?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/24073?src=pr&el=footer). Last update [3fe697f...6526d3f](https://codecov.io/gh/pandas-dev/pandas/pull/24073?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/24073?src=pr&el=h1) Report
> Merging [#24073](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/3fe697f3c9dcb0c0a7a9b91c0098d31b39f51fef?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/24073/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24073   +/-   ##
=======================================
  Coverage   42.51%   42.51%           
=======================================
  Files         161      161           
  Lines       51689    51689           
=======================================
  Hits        21974    21974           
  Misses      29715    29715
```

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


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24073?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/24073?src=pr&el=footer). Last update [3fe697f...6526d3f](https://codecov.io/gh/pandas-dev/pandas/pull/24073?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/24073?src=pr&el=h1) Report
> Merging [#24073](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/3fe697f3c9dcb0c0a7a9b91c0098d31b39f51fef?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/24073/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24073   +/-   ##
=======================================
  Coverage   42.51%   42.51%           
=======================================
  Files         161      161           
  Lines       51689    51689           
=======================================
  Hits        21974    21974           
  Misses      29715    29715
```

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


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24073?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/24073?src=pr&el=footer). Last update [3fe697f...6526d3f](https://codecov.io/gh/pandas-dev/pandas/pull/24073?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/24073?src=pr&el=h1) Report
> Merging [#24073](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/3fe697f3c9dcb0c0a7a9b91c0098d31b39f51fef?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/24073/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24073?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24073   +/-   ##
=======================================
  Coverage   42.51%   42.51%           
=======================================
  Files         161      161           
  Lines       51689    51689           
=======================================
  Hits        21974    21974           
  Misses      29715    29715
```

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


------

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

thanks!