[pypy-commit] pypy pypy_ctypes_nosegfault_nofastpath: Test_segfault.py now throws ctypes.ArgumentError

Dodan pypy.commits at gmail.com
Fri May 19 08:53:06 EDT 2017


Author: Dodan Mihai <mihai.dodan at gmail.com>
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)


More information about the pypy-commit mailing list