15
0
forked from pool/python-tox
Files
python-tox/mark-network-tests.patch
Dirk Mueller b2a18c6916 update to 4.27.0:
* Feat: include free_threaded flag in result-json
  * Add security policy
  * Fix dependency-group name normalization
  * Log environment variables sorted by key while redacting
    values of unsafe ones
- update to 4.26.0:
  * Add a missing quote in a TOML example @ `config.rst`
  * Add colour to GitHub Actions CI logs
  * Fix using deprecated virtualenv option `--wheel`
  * Fix custom HelpFormatter for Python 3.14
  * Drop support for EOL Python 3.8
  * Test with Python 3.14
  * Fix for tox4 regression issue with setenv file and
    substitutions
  * Feat: free-threaded python support

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=133
2026-01-16 09:43:56 +00:00

37 lines
1.4 KiB
Diff

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.23.2/pyproject.toml
===================================================================
--- tox-4.23.2.orig/pyproject.toml
+++ tox-4.23.2/pyproject.toml
@@ -146,6 +146,9 @@ testpaths = [
"tests",
]
addopts = "--tb=auto -ra --showlocals --no-success-flaky-report"
+markers = [
+ "network: tests requiring network connection",
+]
# Keep temporary directories only for failed or errored tests.
tmp_path_retention_policy = "failed"
Index: tox-4.23.2/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py
===================================================================
--- tox-4.23.2.orig/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py
+++ tox-4.23.2/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py
@@ -86,6 +86,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) -> None:
ini = """
[testenv]