[issue6227] doctest_aliases doesn't test duplicate removal
report at bugs.python.org
Sun Jun 7 06:37:44 CEST 2009
New submission from James Abbatiello <abbeyj at gmail.com>:
The file Lib/test/doctest_aliases.py 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.
title: doctest_aliases doesn't test duplicate removal
versions: Python 2.7
Added file: http://bugs.python.org/file14210/doctest_aliases.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list