summaryrefslogtreecommitdiffstats
path: root/contrib/python/PyHamcrest/py2/patches/04-pr130.patch
blob: 8d8f206e20c2b7d6367dd4e60f0ef97b3b13e283 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- contrib/python/PyHamcrest/py2/hamcrest/core/core/allof.py   (index)
+++ contrib/python/PyHamcrest/py2/hamcrest/core/core/allof.py   (working tree)
@@ -25,7 +25,7 @@ class AllOf(BaseMatcher):
                 found_mismatch = True
                 if not self.describe_all_mismatches:
                     break
-                elif i < len(self.matchers) - 1:
+                elif i < len(self.matchers) - 1 and mismatch_description:
                     mismatch_description.append_text(' and ')
         return not found_mismatch