summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2021-06-20 19:43:55 +0200
committerArmin Rigo <arigo@tunes.org>2021-06-20 19:43:55 +0200
commit1531a5c0c27cbc8c17bb721b936899c9ce24f329 (patch)
tree5ce937eaa152d5653598cddc387f31f279472ccc /testing
parent99759a3230a94768b3eaefd9326b65a320627c7c (diff)
downloadcffi-1531a5c0c27cbc8c17bb721b936899c9ce24f329.tar.gz
another test fix
Diffstat (limited to 'testing')
-rw-r--r--testing/cffi1/test_recompiler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
index b35c3eb..fdb4d5a 100644
--- a/testing/cffi1/test_recompiler.py
+++ b/testing/cffi1/test_recompiler.py
@@ -1669,9 +1669,10 @@ def test_extern_python_bogus_result_type():
with StdErrCapture() as f:
res = lib.bar(321)
assert res is None
- assert f.getvalue() == (
- "From cffi callback %r:\n" % (bar,) +
- "Trying to convert the result back to C:\n"
+ msg = f.getvalue()
+ assert "rom cffi callback %r" % (bar,) in msg
+ assert "rying to convert the result back to C:\n" in msg
+ assert msg.endswith(
"TypeError: callback with the return type 'void' must return None\n")
def test_extern_python_redefine():