This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rbcollins
Recipients ChrisBarker, ezio.melotti, mark.dickinson, michael.foord, r.david.murray, rbcollins
Date 2016-06-03.20:41:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464986486.7.0.889335930268.issue27198@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for proposing this. I really don't want to add new assertions to unittest, and I certainly don't want to add narrow usage ones like this, nor ones that are confusingly named (this has nothing to do with files, but 'close' is a verb for files, just like equal is a verb for objects.

Instead, I suggest a regular function that will raise AssertionError on failure. The only thing you need _formatMessage for is handling long messages, and I don't think thats useful or relevant for a binary numeric test like this.
History
Date User Action Args
2016-06-03 20:41:26rbcollinssetrecipients: + rbcollins, mark.dickinson, ezio.melotti, r.david.murray, michael.foord, ChrisBarker
2016-06-03 20:41:26rbcollinssetmessageid: <1464986486.7.0.889335930268.issue27198@psf.upfronthosting.co.za>
2016-06-03 20:41:26rbcollinslinkissue27198 messages
2016-06-03 20:41:26rbcollinscreate