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 Steven.Barker
Recipients Steven.Barker
Date 2014-05-06.07:43:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399362194.49.0.4974401647.issue21445@psf.upfronthosting.co.za>
In-reply-to
Content
While working on a fix for issue 1234674, I found that the first test method in Lib/test/test_filecmp.py (FileCompareTestCase.test_matching) has switched up messages in its AssertEquals calls. The first two asserts have the message that should belong to the second two, and visa versa.

I've prepared a very simple patch that switches around the AssertEquals arguments so that the messages match what is being tested. The behavior checked by the asserts remains exactly the same, only the message printed if an assert fails will be different.

The test still passes. If you want to see the wrong message get displayed, the patch I uploaded for issue 1234674 may cause the test edited here to fail intermittently (it depend on whether two files are created in a shorter time than your filesystems's mtime resolution in the setup code). The failures are not affected by this patch, but with it you'll get the right message rather than a wrong one.
History
Date User Action Args
2014-05-06 07:43:14Steven.Barkersetrecipients: + Steven.Barker
2014-05-06 07:43:14Steven.Barkersetmessageid: <1399362194.49.0.4974401647.issue21445@psf.upfronthosting.co.za>
2014-05-06 07:43:14Steven.Barkerlinkissue21445 messages
2014-05-06 07:43:13Steven.Barkercreate