summaryrefslogtreecommitdiffstats
path: root/contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-09-10 15:34:55 +0300
committerrobot-piglet <[email protected]>2025-09-10 15:52:03 +0300
commitb0091b5ec4e788ed216c0a23786c921307b79b0a (patch)
tree4da0bd43ceae17f84820956bcd3801cdb8c0ebb8 /contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch
parent3f573d26f7b92eb46dfff503d68a5897c96386ce (diff)
Intermediate changes
commit_hash:6b9536340f4f2533b62d862c22cbfeb121d4fa3f
Diffstat (limited to 'contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch')
-rw-r--r--contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch b/contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch
index 03effb4ad17..71d625bb19b 100644
--- a/contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch
+++ b/contrib/python/PyHamcrest/py3/patches/02-add-additional-matcher.patch
@@ -28,7 +28,7 @@ revision: 2945097
try:
- function()
+ self.actual_return_value = function()
- except Exception:
+ except BaseException:
self.actual = sys.exc_info()[1]
if isinstance(self.actual, self.expected):
@@ -68,7 +68,7 @@ revision: 2945097
+ description.append_text("\nAdditional exception matcher: ")
+ self.matcher.describe_mismatch(self.actual, description)
else:
- description.append_text('%s was raised instead' % type(self.actual))
+ description.append_text('%r of type %s was raised instead' % (self.actual, type(self.actual)))
-def raises(exception, pattern=None):