diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-09-17 23:35:33 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-17 23:35:33 (GMT) |
| commit | 1ce16fb0977283ae42a9f8917bbca5f44aa69324 (patch) | |
| tree | fdb8005d57223998984d9a20cc171f25ec94ea12 /Lib/test/test_capi.py | |
| parent | d3b904144e86e2442961de6a7dccecbe133d5c6d (diff) | |
| download | cpython-1ce16fb0977283ae42a9f8917bbca5f44aa69324.zip cpython-1ce16fb0977283ae42a9f8917bbca5f44aa69324.tar.gz cpython-1ce16fb0977283ae42a9f8917bbca5f44aa69324.tar.bz2 | |
bpo-38070: Py_FatalError() logs runtime state (GH-16246)
Diffstat (limited to 'Lib/test/test_capi.py')
| -rw-r--r-- | Lib/test/test_capi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index a384064..b1d045c 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -198,6 +198,7 @@ class CAPITest(unittest.TestCase): self.assertRegex(err.replace(b'\r', b''), br'Fatal Python error: a function returned NULL ' br'without setting an error\n' + br'Python runtime state: initialized\n' br'SystemError: <built-in function ' br'return_null_without_error> returned NULL ' br'without setting an error\n' @@ -225,6 +226,7 @@ class CAPITest(unittest.TestCase): self.assertRegex(err.replace(b'\r', b''), br'Fatal Python error: a function returned a ' br'result with an error set\n' + br'Python runtime state: initialized\n' br'ValueError\n' br'\n' br'The above exception was the direct cause ' |
