This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: missing sequence tests - pull from deque
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: doerwalter Nosy List: doerwalter, jimjjewett
Priority: normal Keywords:

Created on 2005-03-18 22:21 by jimjjewett, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg24700 - (view) Author: Jim Jewett (jimjjewett) Date: 2005-03-18 22:21
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"
msg24701 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-03-21 21:33
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.
msg24702 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-03-22 22:45
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!
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41716
2005-03-18 22:21:20jimjjewettcreate