Author: Dodan Mihai <[email protected]>
Branch: pypy_ctypes_nosegfault_nofastpath
Changeset: r91342:a0c92b42599a
Date: 2017-05-19 10:43 +0300
http://bitbucket.org/pypy/pypy/changeset/a0c92b42599a/
Log: Test_segfault.py now throws ctypes.ArgumentError
diff --git a/pypy/module/test_lib_pypy/ctypes_tests/test_segfault.py
b/pypy/module/test_lib_pypy/ctypes_tests/test_segfault.py
--- a/pypy/module/test_lib_pypy/ctypes_tests/test_segfault.py
+++ b/pypy/module/test_lib_pypy/ctypes_tests/test_segfault.py
@@ -12,5 +12,5 @@
libc.strlen.restype = ctypes.c_size_t
try:
libc.strlen(False)
- except Exception as e:
- assert isinstance(e,Exception)
+ except ctypes.ArgumentError as e:
+ assert isinstance(e,ctypes.ArgumentError)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit