summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_cffi_binary.py
diff options
context:
space:
mode:
authorMiro Hrončok <miro@hroncok.cz>2022-11-11 14:51:14 +0100
committerMiro Hrončok <miro@hroncok.cz>2022-11-11 14:51:14 +0100
commitbabc98d98570b5dbb85fb1c58b012aafa9769696 (patch)
treeced2689aa8dcc7f36546160934fcc5de82e41c19 /testing/cffi1/test_cffi_binary.py
parent5ddf2accf50f05c8962c0c38211b0ad73412be71 (diff)
downloadcffi-py.test.tar.gz
Replace py.test usage with pytest, explicitly require py for testspy.test
pytest 7.2+ no longer depends on py. It ships py.path and py.error only. See https://docs.pytest.org/en/7.2.x/changelog.html#deprecations The tests use py.code as well, hence we declare and document a test dependency on py.
Diffstat (limited to 'testing/cffi1/test_cffi_binary.py')
-rw-r--r--testing/cffi1/test_cffi_binary.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/testing/cffi1/test_cffi_binary.py b/testing/cffi1/test_cffi_binary.py
index 45421ed..2fb042c 100644
--- a/testing/cffi1/test_cffi_binary.py
+++ b/testing/cffi1/test_cffi_binary.py
@@ -1,12 +1,13 @@
-import py, sys, os
+import sys, os
+import pytest
import _cffi_backend
from testing.support import is_musl
def test_no_unknown_exported_symbols():
if not hasattr(_cffi_backend, '__file__'):
- py.test.skip("_cffi_backend module is built-in")
+ pytest.skip("_cffi_backend module is built-in")
if not sys.platform.startswith('linux') or is_musl:
- py.test.skip("linux-only")
+ pytest.skip("linux-only")
g = os.popen("objdump -T '%s'" % _cffi_backend.__file__, 'r')
for line in g:
if not line.startswith('0'):