summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_dlopen.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/cffi1/test_dlopen.py')
-rw-r--r--testing/cffi1/test_dlopen.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/cffi1/test_dlopen.py b/testing/cffi1/test_dlopen.py
index 26a2717..11681d2 100644
--- a/testing/cffi1/test_dlopen.py
+++ b/testing/cffi1/test_dlopen.py
@@ -1,4 +1,4 @@
-import py
+import pytest
from cffi import FFI, VerificationError, CDefError
from cffi.recompiler import make_py_source
from testing.udir import udir
@@ -36,7 +36,7 @@ ffi = _cffi_backend.FFI('test_valid_global_constant',
def test_invalid_global_constant_3():
ffi = FFI()
- e = py.test.raises(CDefError, ffi.cdef, "#define BB 12.34")
+ e = pytest.raises(CDefError, ffi.cdef, "#define BB 12.34")
assert str(e.value).startswith(
"only supports one of the following syntax:")
@@ -44,7 +44,7 @@ def test_invalid_dotdotdot_in_macro():
ffi = FFI()
ffi.cdef("#define FOO ...")
target = udir.join('test_invalid_dotdotdot_in_macro.py')
- e = py.test.raises(VerificationError, make_py_source, ffi,
+ e = pytest.raises(VerificationError, make_py_source, ffi,
'test_invalid_dotdotdot_in_macro', str(target))
assert str(e.value) == ("macro FOO: cannot use the syntax '...' in "
"'#define FOO ...' when using the ABI mode")
@@ -169,7 +169,7 @@ def test_no_cross_include():
ffi = FFI()
ffi.include(baseffi)
target = udir.join('test_no_cross_include.py')
- py.test.raises(VerificationError, make_py_source,
+ pytest.raises(VerificationError, make_py_source,
ffi, 'test_no_cross_include', str(target))
def test_array():
@@ -191,7 +191,7 @@ def test_array_overflow():
ffi = FFI()
ffi.cdef("typedef int32_t my_array_t[3000000000];")
target = udir.join('test_array_overflow.py')
- py.test.raises(OverflowError, make_py_source,
+ pytest.raises(OverflowError, make_py_source,
ffi, 'test_array_overflow', str(target))
def test_global_var():