[New-bugs-announce] [issue16824] typo in test

Stefan Behnel report at bugs.python.org
Mon Dec 31 09:26:55 CET 2012


New submission from Stefan Behnel:

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.

----------
components: Tests
messages: 178653
nosy: scoder
priority: normal
severity: normal
status: open
title: typo in test
type: compile error
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16824>
_______________________________________


More information about the New-bugs-announce mailing list