Issue 21773: Fix a NameError in test_enum (original ) (raw ) Issue21773
Created on 2014-06-15 20:09 by Claudiu.Popa , last changed 2022-04-11 14:58 by admin . This issue is now closed .
Messages (4)
msg220669 - (view)
Author: PCManticore (Claudiu.Popa) *
Date: 2014-06-15 20:09
There's a bug in test_enum.TestStdLib.test_pydoc, print_diffs is undefined and using assertEqual seems to be clearer.
msg220745 - (view)
Author: Ethan Furman (ethan.furman) *
Date: 2014-06-16 18:33
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.
msg220760 - (view)
Author: Roundup Robot (python-dev)
Date: 2014-06-16 20:51
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) Issue #21773 : Fix TestStdLib.test_pydoc() of test_enum. Patch http://hg.python.org/cpython/rev/e82ba67d7472
msg220761 - (view)
Author: STINNER Victor (vstinner) *
Date: 2014-06-16 20:52
Fixed. Thanks for the patch.
History
Date
User
Action
Args
2022-04-11 14:58:04
admin
set
github: 65972
2014-06-16 20:52:29
vstinner
set
status: open -> closedversions: + Python 3.4nosy: + vstinner messages: + resolution: fixed
2014-06-16 20:51:53
python-dev
set
nosy: + python-dev messages: +
2014-06-16 18:33:01
ethan.furman
set
assignee: ethan.furman type: enhancement -> behaviormessages: + stage: patch review
2014-06-15 20:09:13
Claudiu.Popa
create