STYLE: Fix or suppress non-iterator-returned errors from pylint
- [X] addresses one issue ( `non-iterator-returned` ) from #48855

Found one instance of a test that's deliberately returning an Iterator to fool `is_file_like`, suppressing the warning as a false positive based on nature of test.
Thanks @roadswitcher 