TST: clean up to change setup.cfg to `xfail_strict = True` (GH23057)
- [x] closes #23057
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
