Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_any calls all() instead of any() #61344

Closed
sjoerder mannequin opened this issue Feb 6, 2013 · 3 comments
Closed

test_any calls all() instead of any() #61344

sjoerder mannequin opened this issue Feb 6, 2013 · 3 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@sjoerder
Copy link
Mannequin

sjoerder mannequin commented Feb 6, 2013

BPO 17142
Nosy @ezio-melotti, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2013-02-06.15:07:50.595>
created_at = <Date 2013-02-06.14:15:52.613>
labels = ['type-bug', 'tests']
title = 'test_any calls all() instead of any()'
updated_at = <Date 2013-02-06.15:07:50.592>
user = 'https://bugs.python.org/sjoerder'

bugs.python.org fields:

activity = <Date 2013-02-06.15:07:50.592>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2013-02-06.15:07:50.595>
closer = 'r.david.murray'
components = ['Tests']
creation = <Date 2013-02-06.14:15:52.613>
creator = 'sjoerder'
dependencies = []
files = []
hgrepos = []
issue_num = 17142
keywords = []
message_count = 3.0
messages = ['181524', '181529', '181530']
nosy_count = 4.0
nosy_names = ['ezio.melotti', 'r.david.murray', 'python-dev', 'sjoerder']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue17142'
versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

@sjoerder
Copy link
Mannequin Author

sjoerder mannequin commented Feb 6, 2013

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())

@sjoerder sjoerder mannequin added type-feature A feature request or enhancement tests Tests in the Lib/test dir labels Feb 6, 2013
@python-dev
Copy link
Mannequin

python-dev mannequin commented Feb 6, 2013

New changeset 1fc87fa05333 by R David Murray in branch '3.2':
bpo-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: bpo-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: bpo-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':
bpo-17142: fix apparent copy and paste error in test_all.
http://hg.python.org/cpython/rev/d0cfabed2ef3

@bitdancer
Copy link
Member

Good catch, thanks. A copy and paste error, I suppose.

@bitdancer bitdancer added type-bug An unexpected behavior, bug, or error and removed type-feature A feature request or enhancement labels Feb 6, 2013
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant