TST: Add test for setting item using python list (#19406)
- [X] closes #19406 
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [NA] whatsnew entry
