diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-08-14 05:34:32 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-08-14 05:34:32 (GMT) |
commit | 143fe05da17da2d04dfeb587730fe5e71a9f4097 (patch) | |
tree | e75e65e1add110c4809e5757f1e16cd9e86a248a /Lib/test/test_filecmp.py | |
parent | cd3aacf5251ded68df29e2528cd88febc00b604b (diff) | |
download | cpython-143fe05da17da2d04dfeb587730fe5e71a9f4097.zip cpython-143fe05da17da2d04dfeb587730fe5e71a9f4097.tar.gz cpython-143fe05da17da2d04dfeb587730fe5e71a9f4097.tar.bz2 |
Issue #21445: Pass exception messages correctly to assertTrue in
the FileCompareTestCase.test_matching test.
Patch by Steven Barker.
Diffstat (limited to 'Lib/test/test_filecmp.py')
-rw-r--r-- | Lib/test/test_filecmp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_filecmp.py b/Lib/test/test_filecmp.py index 429e3ff..b5b24a2 100644 --- a/Lib/test/test_filecmp.py +++ b/Lib/test/test_filecmp.py @@ -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): |