summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-21 14:09:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-21 14:09:17 (GMT)
commit467ab194fc6189d9f7310c89937c51abeac56839 (patch)
treeac2397959d646b3656fbf4759f4e6cb9d82e4ae6 /Lib/test
parentb0426cd8c4ecaa19cff05b4860da1c06531a77c1 (diff)
downloadcpython-467ab194fc6189d9f7310c89937c51abeac56839.zip
cpython-467ab194fc6189d9f7310c89937c51abeac56839.tar.gz
cpython-467ab194fc6189d9f7310c89937c51abeac56839.tar.bz2
Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising
new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1]
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_capi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index d4faeb3..6c3625d 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -222,8 +222,8 @@ class CAPITest(unittest.TestCase):
br'result with an error set\n'
br'ValueError\n'
br'\n'
- br'During handling of the above exception, '
- br'another exception occurred:\n'
+ br'The above exception was the direct cause '
+ br'of the following exception:\n'
br'\n'
br'SystemError: <built-in '
br'function return_result_with_error> '