Serhiy Storchaka added the comment:

Thanks for suggestion Benjamin.

seq_tests.py provides common tests for list, tuple, UserList and deque. This 
test doesn't work for tuple, since it is not mutable. It doesn't work for 
deque, since it can't be iterated after changing size. Common test for list and 
UserList can be moved to list_tests.py. In any case we need separate tests for 
bytearray, array and general sequence iterator.

I would be happy to not repeat the test, but tests for array and general 
sequence iterator have not much common with test for list.

Updated patch moves list test to list_tests.py (it now works for UserList) and 
reuses in for bytearray.

----------
Added file: http://bugs.python.org/file42089/exhausted_array_iterator2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to