Remove unnecessary `@td.skip_if_no("pathlib")`
- [x] closes #30375
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

thanks but the patch for this issue was recently merged (1 hour ago)