Title: doctest_aliases doesn't test duplicate removal
Type: Stage:
Components: Tests Versions: Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: abbeyj, amaury.forgeotdarc
Priority: normal Keywords: patch

Created on 2009-06-07 04:37 by abbeyj, last changed 2009-06-14 21:21 by amaury.forgeotdarc. This issue is now closed.

File name Uploaded Description Edit
doctest_aliases.patch abbeyj, 2009-06-07 04:37
Messages (2)
msg89027 - (view) Author: James Abbatiello (abbeyj) Date: 2009-06-07 04:37
The file Lib/test/ is used by test_doctest to check
the handling of duplicate removal.  The "g = f" line in this file is one
indent too far to the right so instead of creating an alias for f called
g it is just unreachable code inside of f.  Since there is no alias
there is no need to remove duplicates and the test passes trivially.

I think this affects all versions but I've only checked on 2.7.
msg89370 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-06-14 21:21
Fixed in r73432 (trunk), will be merged to py3k after 3.1 is final.
Thanks for the report!
Date User Action Args
2009-06-14 21:21:46amaury.forgeotdarcsetstatus: open -> closed

nosy: + amaury.forgeotdarc
messages: + msg89370

resolution: fixed
2009-06-07 04:37:43abbeyjcreate