Commit 143fe05d authored by Berker Peksag's avatar Berker Peksag

Issue #21445: Pass exception messages correctly to assertTrue in

the FileCompareTestCase.test_matching test.

Patch by Steven Barker.
parent cd3aacf5
......@@ -27,13 +27,13 @@ class FileCompareTestCase(unittest.TestCase):
os.unlink(self.name_diff)
def test_matching(self):
self.assertTrue(filecmp.cmp(self.name, self.name_same),
"Comparing file to itself fails")
self.assertTrue(filecmp.cmp(self.name, self.name_same, shallow=False),
self.assertTrue(filecmp.cmp(self.name, self.name),
"Comparing file to itself fails")
self.assertTrue(filecmp.cmp(self.name, self.name, shallow=False),
"Comparing file to itself fails")
self.assertTrue(filecmp.cmp(self.name, self.name_same),
"Comparing file to identical file fails")
self.assertTrue(filecmp.cmp(self.name, self.name),
self.assertTrue(filecmp.cmp(self.name, self.name_same, shallow=False),
"Comparing file to identical file fails")
def test_different(self):
......
......@@ -78,6 +78,7 @@ Michael J. Barber
Daniel Barclay
Nicolas Bareil
Chris Barker
Steven Barker
Anton Barkovsky
Nick Barnes
Quentin Barnes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment