[packages/python3-pytest-socket] Rel 2.
arekm
arekm at pld-linux.org
Thu Nov 12 11:38:42 CET 2026
commit cf6e639e8604120ce45e7f24ff396cbff0a37c97
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 11:33:48 2026 +0100
Rel 2.
Skip tests that connect to public hosts: no network on builders.
python3-pytest-socket.spec | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/python3-pytest-socket.spec b/python3-pytest-socket.spec
index 1089aef..acee082 100644
--- a/python3-pytest-socket.spec
+++ b/python3-pytest-socket.spec
@@ -6,7 +6,7 @@ Summary: Pytest Plugin to disable socket calls during tests
Summary(pl.UTF-8): Wtyczka pytesta blokująca odwołania do gniazd w trakcie testów
Name: python3-pytest-socket
Version: 0.8.1
-Release: 1
+Release: 2
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pytest-socket/
@@ -48,10 +48,11 @@ podczas testów, aby zapobiec odwołaniom do sieci.
%if %{with tests}
# expects localhost to resolve to both 127.0.0.1 and ::1, depends on /etc/hosts
+# the others connect to public hosts (google.com, http.codes), no network on builders
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS=anyio.pytest_plugin,pytest_benchmark.plugin,pytest_socket \
PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest tests -k 'not test_single_cli_arg_connect_disabled_hostname_resolved'
+%{__python3} -m pytest tests -k 'not (test_single_cli_arg_connect_disabled_hostname_resolved or test_parametrize_with_socket_enabled_and_allow_hosts or test_global_disable_and_allow_host or test_urllib_succeeds_by_default or test_enabled_urllib_succeeds)'
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-socket.git/commitdiff/cf6e639e8604120ce45e7f24ff396cbff0a37c97
More information about the pld-cvs-commit
mailing list