classification
Title: test_any calls all() instead of any()
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, python-dev, r.david.murray, sjoerder
Priority: normal Keywords:

Created on 2013-02-06 14:15 by sjoerder, last changed 2013-02-06 15:07 by r.david.murray. This issue is now closed.

Messages (3)
msg181524 - (view) Author: Sjoerd Langkemper (sjoerder) * Date: 2013-02-06 14:15
In test_builtin.py, on the fourth in the test_any() function:

self.assertRaises(RuntimeError, all, TestFailingIter())

I think this should be:

self.assertRaises(RuntimeError, any, TestFailingIter())
msg181529 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-02-06 15:06
New changeset 1fc87fa05333 by R David Murray in branch '3.2':
#17142: fix apparent copy and paste error in test_all.
http://hg.python.org/cpython/rev/1fc87fa05333

New changeset 4db932a303b4 by R David Murray in branch '3.3':
Merge: #17142: fix apparent copy and paste error in test_all.
http://hg.python.org/cpython/rev/4db932a303b4

New changeset acdb0da0df2b by R David Murray in branch 'default':
Merge: #17142: fix apparent copy and paste error in test_all.
http://hg.python.org/cpython/rev/acdb0da0df2b

New changeset d0cfabed2ef3 by R David Murray in branch '2.7':
#17142: fix apparent copy and paste error in test_all.
http://hg.python.org/cpython/rev/d0cfabed2ef3
msg181530 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-02-06 15:07
Good catch, thanks.  A copy and paste error, I suppose.
History
Date User Action Args
2013-02-06 15:07:50r.david.murraysetstatus: open -> closed

type: enhancement -> behavior
versions: + Python 2.7, Python 3.2, Python 3.4
nosy: + r.david.murray

messages: + msg181530
resolution: fixed
stage: resolved
2013-02-06 15:06:26python-devsetnosy: + python-dev
messages: + msg181529
2013-02-06 14:21:26ezio.melottisetnosy: + ezio.melotti
2013-02-06 14:15:52sjoerdercreate