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: typo in test
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: python-dev, scoder, serhiy.storchaka
Priority: normal Keywords:

Created on 2012-12-31 08:26 by scoder, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg178653 - (view) Author: Stefan Behnel (scoder) * (Python committer) Date: 2012-12-31 08:26
Line 522 in test file Lib/test/test_pep380.py says:

                trace.append("Should not have yielded:", y)

However, 'trace' is a list and list.append() only takes one parameter, so this should read:

                trace.append("Should not have yielded: %r" % y)

I noticed it because Cython's type analysis refuses to compile this. This line is just a failure guard and is never reached in the normal test execution, that's why it doesn't show in CPython's test runs.
msg178657 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-12-31 09:38
New changeset 9472928af085 by Serhiy Storchaka in branch '3.3':
Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
http://hg.python.org/cpython/rev/9472928af085

New changeset 66665ef7d9d6 by Serhiy Storchaka in branch 'default':
Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
http://hg.python.org/cpython/rev/66665ef7d9d6
msg178658 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2012-12-31 09:41
Fixed. Thank you, Stefan. I will be glad to see new bugs which you will found with Cython.
History
Date User Action Args
2022-04-11 14:57:40adminsetgithub: 61028
2012-12-31 09:41:41serhiy.storchakasetstatus: open -> closed
type: compile error -> behavior
messages: + msg178658

resolution: fixed
stage: resolved
2012-12-31 09:38:32python-devsetnosy: + python-dev
messages: + msg178657
2012-12-31 09:17:44serhiy.storchakasetassignee: serhiy.storchaka

nosy: + serhiy.storchaka
2012-12-31 08:26:55scodercreate