mirror of
https://github.com/python/cpython.git
synced 2025-10-12 01:43:12 +00:00
Issue #21445: Pass exception messages correctly to assertTrue in
the FileCompareTestCase.test_matching test. Patch by Steven Barker.
This commit is contained in:
parent
cd3aacf525
commit
143fe05da1
2 changed files with 5 additions and 4 deletions
|
@ -27,13 +27,13 @@ class FileCompareTestCase(unittest.TestCase):
|
||||||
os.unlink(self.name_diff)
|
os.unlink(self.name_diff)
|
||||||
|
|
||||||
def test_matching(self):
|
def test_matching(self):
|
||||||
self.assertTrue(filecmp.cmp(self.name, self.name_same),
|
self.assertTrue(filecmp.cmp(self.name, self.name),
|
||||||
"Comparing file to itself fails")
|
|
||||||
self.assertTrue(filecmp.cmp(self.name, self.name_same, shallow=False),
|
|
||||||
"Comparing file to itself fails")
|
"Comparing file to itself fails")
|
||||||
self.assertTrue(filecmp.cmp(self.name, self.name, shallow=False),
|
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")
|
"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")
|
"Comparing file to identical file fails")
|
||||||
|
|
||||||
def test_different(self):
|
def test_different(self):
|
||||||
|
|
|
@ -78,6 +78,7 @@ Michael J. Barber
|
||||||
Daniel Barclay
|
Daniel Barclay
|
||||||
Nicolas Bareil
|
Nicolas Bareil
|
||||||
Chris Barker
|
Chris Barker
|
||||||
|
Steven Barker
|
||||||
Anton Barkovsky
|
Anton Barkovsky
|
||||||
Nick Barnes
|
Nick Barnes
|
||||||
Quentin Barnes
|
Quentin Barnes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue