summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-08-14 08:35:15 +0300
committerBerker Peksag <berker.peksag@gmail.com>2014-08-14 08:35:15 +0300
commit3714ab4c27799890375798c3e8b96cf2a409bd3e (patch)
treef478fbb9262e8468275d6991d02c6bcfe6d9cdb8 /Lib
parent1bed4a9f5fccf5842c690b557f3cf9ae7bd6b019 (diff)
parent143fe05da17da2d04dfeb587730fe5e71a9f4097 (diff)
downloadcpython-git-3714ab4c27799890375798c3e8b96cf2a409bd3e.tar.gz
Issue #21445: Pass exception messages correctly to assertTrue in
the FileCompareTestCase.test_matching test. Patch by Steven Barker.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_filecmp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_filecmp.py b/Lib/test/test_filecmp.py
index 429e3ffdb1..b5b24a24c8 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):