Ethan Furman added the comment:
Right, I had copied that code from test_pydoc which is where 'print_diffs' is
defined.
A comment there says to use the now-included functionality in unittest, and
some digging in the docs revealed that assertEqual uses diffs by default.
--
assignee: -
Roundup Robot added the comment:
New changeset 1536085d4a94 by Victor Stinner in branch '3.4':
Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by
http://hg.python.org/cpython/rev/1536085d4a94
New changeset e82ba67d7472 by Victor Stinner in branch 'default':
(Merge 3.4)
STINNER Victor added the comment:
Fixed. Thanks for the patch.
--
nosy: +haypo
resolution: - fixed
status: open - closed
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21773
New submission from Claudiu Popa:
There's a bug in test_enum.TestStdLib.test_pydoc, print_diffs is undefined and
using assertEqual seems to be clearer.
--
components: Tests
files: test_enum.patch
keywords: patch
messages: 220669
nosy: Claudiu.Popa, ethan.furman
priority: normal