New submission from James Abbatiello <abb...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6227> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com