TST: Add test for 32724
- [x] closes #32724 
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`


Was fixed in the past.
/azp run <samp>
Azure Pipelines successfully started running 1 pipeline(s).<br>

</samp> Thanks @phofl 