classification
Title: TestCase.assertMultiLineEqual only registered for Unicode strings in 2.7
Type: behavior Stage: needs patch
Components: Documentation, Tests Versions: Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Sourav Singh, docs@python, ezio.melotti, martin.panter
Priority: normal Keywords: easy

Created on 2017-05-08 08:50 by martin.panter, last changed 2017-05-27 02:51 by martin.panter.

Messages (3)
msg293229 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2017-05-08 08:50
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.
msg294387 - (view) Author: Sourav Singh (Sourav Singh) Date: 2017-05-24 20:04
@Martin I would like to take a stab at the issue. How do I start?
msg294576 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2017-05-27 02:51
I think the simplest way forward would be to add the word “Unicode” back in. You could look at making a Git Hub pull request for this if you want. Hopefully somebody else can merge it though, because I probably won’t be in a position to do so for a while.
History
Date User Action Args
2017-05-27 02:51:43martin.pantersetmessages: + msg294576
2017-05-24 20:04:05Sourav Singhsetnosy: + Sourav Singh
messages: + msg294387
2017-05-08 08:50:09martin.pantercreate