File mark-network-tests.patch of Package python-tox
From 3ccb15d7bea97db132ed4cdea4d9ef25d18311a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= <mcepl@suse.com>
Date: Mon, 25 Mar 2024 20:11:16 +0100
Subject: [PATCH 2/2] skip test which require network access
---
pyproject.toml | 3 +++
.../python/virtual_env/package/test_package_cmd_builder.py | 1 +
2 files changed, 4 insertions(+)
Index: tox-4.34.1/pyproject.toml
===================================================================
--- tox-4.34.1.orig/pyproject.toml
+++ tox-4.34.1/pyproject.toml
@@ -198,6 +198,9 @@ testpaths = [
"tests",
]
addopts = "--no-success-flaky-report"
+markers = [
+ "network: tests requiring network connection",
+]
verbosity_assertions = 2
filterwarnings = [
"error",
Index: tox-4.34.1/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py
===================================================================
--- tox-4.34.1.orig/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py
+++ tox-4.34.1/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py
@@ -87,6 +87,7 @@ def test_install_pkg_via(tox_project: To
@pytest.mark.usefixtures("enable_pip_pypi_access")
+@pytest.mark.network
def test_build_wheel_external(
tox_project: ToxProjectCreator, demo_pkg_inline: Path, monkeypatch: pytest.MonkeyPatch
) -> None: