Serhiy Storchaka added the comment: Why not use just
self.assertEqual(sorted(it), list(map(sqr, list(range(10))))) or self.assertCountEqual(list(it), list(map(sqr, list(range(10))))) ? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23713> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com