diff options
| author | Miro Hrončok <miro@hroncok.cz> | 2022-11-11 14:51:14 +0100 |
|---|---|---|
| committer | Miro Hrončok <miro@hroncok.cz> | 2022-11-11 14:51:14 +0100 |
| commit | babc98d98570b5dbb85fb1c58b012aafa9769696 (patch) | |
| tree | ced2689aa8dcc7f36546160934fcc5de82e41c19 /testing/cffi0/test_version.py | |
| parent | 5ddf2accf50f05c8962c0c38211b0ad73412be71 (diff) | |
| download | cffi-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_version.py')
| -rw-r--r-- | testing/cffi0/test_version.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/cffi0/test_version.py b/testing/cffi0/test_version.py index facb84c..dfce94f 100644 --- a/testing/cffi0/test_version.py +++ b/testing/cffi0/test_version.py @@ -1,9 +1,10 @@ -import py, os, sys +import os, sys +import pytest import cffi, _cffi_backend def setup_module(mod): if '_cffi_backend' in sys.builtin_module_names: - py.test.skip("this is embedded version") + pytest.skip("this is embedded version") #BACKEND_VERSIONS = { # '0.4.2': '0.4', # did not change |
