Date: Sun, 07 Jun 2026 01:30:18 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8e6e2ca808fd - main - devel/py-pytest-recording: update 0.13.3=?utf-8?Q? =E2=86=92 0.1?=3.4 Message-ID: <6a24c9aa.3bdaa.b73586d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8e6e2ca808fded154ef79d92aed64f1b4d6dd1b7 commit 8e6e2ca808fded154ef79d92aed64f1b4d6dd1b7 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-06-07 01:26:01 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-06-07 01:30:06 +0000 devel/py-pytest-recording: update 0.13.3 → 0.13.4 --- devel/py-pytest-recording/Makefile | 4 +-- devel/py-pytest-recording/distinfo | 6 ++-- .../files/patch-tests_test__blocking__network.py | 41 ++++++++++++++-------- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/devel/py-pytest-recording/Makefile b/devel/py-pytest-recording/Makefile index 49a42c9d5a59..acdfe843a19b 100644 --- a/devel/py-pytest-recording/Makefile +++ b/devel/py-pytest-recording/Makefile @@ -1,5 +1,5 @@ PORTNAME= pytest-recording -DISTVERSION= 0.13.3 +DISTVERSION= 0.13.4 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -26,6 +26,6 @@ TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} NO_ARCH= yes -# tests as of 0.13.2: 30 failed, 29 passed, 6 skipped in 42.49s, see https://github.com/kiwicom/pytest-recording/issues/154 +# tests as of 0.13.4: 63 passed, 8 skipped, 55 warnings in 23.68s .include <bsd.port.mk> diff --git a/devel/py-pytest-recording/distinfo b/devel/py-pytest-recording/distinfo index e0bd7af07b0b..7de1d7a56db0 100644 --- a/devel/py-pytest-recording/distinfo +++ b/devel/py-pytest-recording/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1745556086 -SHA256 (pytest_recording-0.13.3.tar.gz) = dd018421a956ecc45f112c051b1e323b40d029879b1062853df45b05c6098310 -SIZE (pytest_recording-0.13.3.tar.gz) = 26228 +TIMESTAMP = 1780790608 +SHA256 (pytest_recording-0.13.4.tar.gz) = 568d64b2a85992eec4ae0a419c855d5fd96782c5fb016784d86f18053792768c +SIZE (pytest_recording-0.13.4.tar.gz) = 26576 diff --git a/devel/py-pytest-recording/files/patch-tests_test__blocking__network.py b/devel/py-pytest-recording/files/patch-tests_test__blocking__network.py index 528578d5749b..4b1217ad49b3 100644 --- a/devel/py-pytest-recording/files/patch-tests_test__blocking__network.py +++ b/devel/py-pytest-recording/files/patch-tests_test__blocking__network.py @@ -1,22 +1,33 @@ ---- tests/test_blocking_network.py.orig 2025-04-25 08:03:40 UTC +--- tests/test_blocking_network.py.orig 2020-02-02 00:00:00 UTC +++ tests/test_blocking_network.py -@@ -1,7 +1,7 @@ from io import BytesIO - import json - import sys - from io import BytesIO --from socket import AF_INET, AF_NETLINK, AF_UNIX, SOCK_RAW, SOCK_STREAM, socket -+from socket import AF_INET, AF_UNIX, SOCK_RAW, SOCK_STREAM, socket - - import pytest - import requests -@@ -158,14 +158,6 @@ def test_block_network_blocked_socket(): - def test_block_network_blocked_socket(): - with pytest.raises(RuntimeError, match=r"^Network is disabled$"): +@@ -10,11 +10,9 @@ from pytest_recording.network import blocking_context + + from pytest_recording.network import blocking_context + +-# Windows doesn’t have AF_NETLINK & AF_UNIX + try: +- from socket import AF_NETLINK, AF_UNIX ++ from socket import AF_UNIX + except ImportError: +- AF_NETLINK = None # type: ignore[assignment] + AF_UNIX = None # type: ignore[assignment] + + +@@ -28,7 +26,6 @@ except ImportError as exc: + pycurl = None # type: ignore[assignment] + + +-skip_netlink = pytest.mark.skipif(AF_NETLINK is None, reason="AF_NETLINK not available on this platform") + skip_unix = pytest.mark.skipif(AF_UNIX is None, reason="AF_UNIX not available on this platform") + + +@@ -174,13 +171,6 @@ def test_block_network_blocked_socket(): call("./blocked_socket", AF_UNIX, SOCK_STREAM) -- -- + + -# When not AF_UNIX, AF_INET or AF_INET6 socket is used -# Then socket.socket.connect call is blocked, even if resource name is in the allowed list +-@skip_netlink -@pytest.mark.block_network(allowed_hosts=["./allowed_socket", "127.0.0.1", "0"]) -def test_blocked(): - with pytest.raises(RuntimeError, match=r"^Network is disabled$"):home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a24c9aa.3bdaa.b73586d>
