Bugs item #1166274, was opened at 2005-03-18 23:21 Message generated for change (Comment added) made by doerwalter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1166274&group_id=5470
Category: Python Library Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Jim Jewett (jimjjewett) Assigned to: Walter Dörwald (doerwalter) Summary: missing sequence tests - pull from deque Initial Comment: tuples and lists can be initialized from any sequence, including an iterator. This is not tested. The iterator tests in test_deque would do a good job. list_tests (for list and UserList) test_remove does not test that it is the _first_ occurence that gets removed. Again, the deque tests that Raymond just checked in are up to the job, if "deque" is replaced by "type2test" ---------------------------------------------------------------------- >Comment By: Walter Dörwald (doerwalter) Date: 2005-03-22 23:45 Message: Logged In: YES user_id=89016 Checked in the "construct from iterable" tests as: Lib/test/seq_tests.py 1.4 Lib/test/test_deque.py 1.22 I've moved the iterables from test_deque to seq_tests, so that they can be reused. Closing the report. Thanks for the tip! ---------------------------------------------------------------------- Comment By: Walter Dörwald (doerwalter) Date: 2005-03-21 22:33 Message: Logged In: YES user_id=89016 Checked in the remove test as: Lib/test/list_tests.py 1.6 (Note that I've dropped the evil mutator test, because it doesn't raise an exception). I'll add the iterator initialization test tomorrow. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1166274&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com