CI: added unwanted pattern test case for "foo.__class__" instead of type(foo)
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

ref #29816 (splitted to #29889, #29893, #29894, #29902, #29904, #29905)