- Skip over the tests which require network.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=276
This commit is contained in:
Matej Cepl 2024-11-21 12:02:25 +00:00 committed by Git OBS Bridge
parent 774b293cd7
commit 287a71d29b
3 changed files with 15 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 21 12:01:23 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Skip over the tests which require network.
-------------------------------------------------------------------
Thu Nov 21 11:35:52 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -121,6 +121,10 @@ export LANG=en_US.UTF-8
export PIP_FIND_LINKS=$PWD/dist
# tests need imports from local source dir
export PYTHONPATH=$(pwd)
# no online comparisons in obs
donttest="(test_apply_pyproject_equivalent_to_setupcfg and https)"
# no network access
donttest+=" or uses_network"
# test_pbr_integration tries to install pbr from network using pip
donttest=" test_pbr_integration"
# looks for .exe files that we do not ship

View File

@ -1,15 +1,10 @@
---
setuptools/command/easy_install.py | 2 +-
setuptools/command/egg_info.py | 2 +-
setuptools/dist.py | 2 +-
setuptools/tests/test_egg_info.py | 2 +-
setuptools/tests/test_wheel.py | 8 ++++----
5 files changed, 8 insertions(+), 8 deletions(-)
2 files changed, 5 insertions(+), 5 deletions(-)
Index: setuptools-70.0.0/setuptools/command/easy_install.py
===================================================================
--- setuptools-70.0.0.orig/setuptools/command/easy_install.py
+++ setuptools-70.0.0/setuptools/command/easy_install.py
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -436,7 +436,7 @@ class easy_install(Command):
for spec in self.args:
self.easy_install(spec, not self.no_deps)
@ -19,11 +14,9 @@ Index: setuptools-70.0.0/setuptools/command/easy_install.py
if self.root: # strip any package prefix
root_len = len(self.root)
for counter in range(len(outputs)):
Index: setuptools-70.0.0/setuptools/tests/test_wheel.py
===================================================================
--- setuptools-70.0.0.orig/setuptools/tests/test_wheel.py
+++ setuptools-70.0.0/setuptools/tests/test_wheel.py
@@ -411,30 +411,30 @@ WHEEL_INSTALL_TESTS = (
--- a/setuptools/tests/test_wheel.py
+++ b/setuptools/tests/test_wheel.py
@@ -417,30 +417,30 @@ WHEEL_INSTALL_TESTS: tuple[dict[str, Any
dict(
id='requires_ensure_order',
install_requires="""