summaryrefslogtreecommitdiff
path: root/testing/cffi0/test_zintegration.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/cffi0/test_zintegration.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/cffi0/test_zintegration.py')
-rw-r--r--testing/cffi0/test_zintegration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/cffi0/test_zintegration.py b/testing/cffi0/test_zintegration.py
index ce925b8..d6a02ce 100644
--- a/testing/cffi0/test_zintegration.py
+++ b/testing/cffi0/test_zintegration.py
@@ -19,7 +19,7 @@ def create_venv(name):
'-p', os.path.abspath(sys.executable),
str(tmpdir)])
except OSError as e:
- py.test.skip("Cannot execute virtualenv: %s" % (e,))
+ pytest.skip("Cannot execute virtualenv: %s" % (e,))
site_packages = None
for dirpath, dirnames, filenames in os.walk(str(tmpdir)):
@@ -159,7 +159,7 @@ class TestZIntegration(object):
try:
import setuptools
except ImportError as e:
- py.test.skip(str(e))
+ pytest.skip(str(e))
orig_version = setuptools.__version__
expecting_limited_api = not hasattr(sys, 'gettotalrefcount')
try: