[issue6227] doctest_aliases doesn't test duplicate removal

James Abbatiello 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.

----------
components: Tests
files: doctest_aliases.patch
keywords: patch
messages: 89027
nosy: abbeyj
severity: normal
status: open
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>
<http://bugs.python.org/issue6227>
_______________________________________


More information about the Python-bugs-list mailing list