TST Fix AttributeError: 'iterator' object has no attribute 'next' on Python 3
Merge pull request #7148 from cgohlke/patch-1

TST Fix AttributeError: 'iterator' object has no attribute 'next' on Python 3