change test such that it passes in headless mode (instead of xpass)
…and xpass in non-headless mode (instead of error).

- [ ] closes #48483 
- [ ] [Tests *modified* and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests). 
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Hello @adrienpacifico! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:



There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2022-09-12 22:49:12 UTC Great! Thanks @adrienpacifico  These are now xpassing for me on mac, py39 [jbrockmendel](https://github.com/jbrockmendel) and it was passing before the PR or was it xpassing? 
Sorry for the inconvenience. I guess the `strict = True` is breaking your test suite? > I guess the strict = True is breaking your test suite?

correct