[issue30304] TestCase.assertMultiLineEqual only registered for Unicode strings in 2.7

Martin Panter report at bugs.python.org
Mon May 8 04:50:09 EDT 2017


New submission from Martin Panter:

In Mercurial revision 6e5b5d1b6714, the documentation for “assertMultiLineEqual” was changed from

This method is used by default when comparing Unicode strings with “assertEqual”.

to

This method is used by default when comparing strings with “assertEqual”. 

The new text is misleading because “str” objects are also strings, but the default does not apply to “str” objects.

----------
assignee: docs at python
components: Documentation, Tests
keywords: easy
messages: 293229
nosy: docs at python, ezio.melotti, martin.panter
priority: normal
severity: normal
stage: needs patch
status: open
title: TestCase.assertMultiLineEqual only registered for Unicode strings in 2.7
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30304>
_______________________________________


More information about the Python-bugs-list mailing list