summaryrefslogtreecommitdiff
path: root/testing/support.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/support.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/support.py')
-rw-r--r--testing/support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/support.py b/testing/support.py
index a65375e..f067719 100644
--- a/testing/support.py
+++ b/testing/support.py
@@ -49,8 +49,8 @@ class FdWriteCapture(object):
def __init__(self, capture_fd=2): # stderr by default
if sys.platform == 'win32':
- import py
- py.test.skip("seems not to work, too bad")
+ import pytest
+ pytest.skip("seems not to work, too bad")
self.capture_fd = capture_fd
def __enter__(self):