summaryrefslogtreecommitdiff
path: root/testing/cffi0/test_zdistutils.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_zdistutils.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_zdistutils.py')
-rw-r--r--testing/cffi0/test_zdistutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/cffi0/test_zdistutils.py b/testing/cffi0/test_zdistutils.py
index 35b3d0c..6f46fa8 100644
--- a/testing/cffi0/test_zdistutils.py
+++ b/testing/cffi0/test_zdistutils.py
@@ -1,5 +1,5 @@
import sys, os, imp, math, shutil
-import py
+import pytest
from cffi import FFI, FFIError
from cffi.verifier import Verifier, _locate_engine_class, _get_so_suffixes
from cffi.ffiplatform import maybe_relative_path
@@ -204,7 +204,7 @@ class DistUtilsTest(object):
def test_install_and_reload_module(self, targetpackage='', ext_package=''):
KEY = repr(self)
if not hasattr(os, 'fork'):
- py.test.skip("test requires os.fork()")
+ pytest.skip("test requires os.fork()")
if targetpackage:
udir.ensure(targetpackage, dir=1).ensure('__init__.py')