- Don't use pytest-xdist, it breaks test suite.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=278
This commit is contained in:
parent
e04290e05d
commit
d8ae32a002
@ -2,6 +2,7 @@
|
||||
Thu Nov 21 12:01:23 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Skip over the tests which require network.
|
||||
- Don't use pytest-xdist, it breaks test suite.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 21 11:35:52 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
@ -60,7 +60,7 @@ BuildRequires: %{python_module pytest >= 6}
|
||||
BuildRequires: %{python_module pytest-home >= 0.5}
|
||||
BuildRequires: %{python_module pytest-subprocess}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module pytest-xdist >= 3}
|
||||
# BuildRequires: %%{python_module pytest-xdist >= 3}
|
||||
BuildRequires: %{python_module setuptools = %{version}}
|
||||
BuildRequires: %{python_module setuptools-wheel = %{version}}
|
||||
BuildRequires: %{python_module tomli-w >= 1.0.0}
|
||||
@ -126,7 +126,7 @@ 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"
|
||||
donttest+=" or test_pbr_integration"
|
||||
# looks for .exe files that we do not ship
|
||||
donttest+=" or test_wheel_includes_cli_scripts"
|
||||
# ignores environment variables
|
||||
@ -134,7 +134,7 @@ donttest+=" or test_setup_requires_with_distutils_command_dep"
|
||||
donttest+=" or test_setup_requires_with_transitive_extra_dependency"
|
||||
# skip tests that require network access
|
||||
donttest+=" or uses_network"
|
||||
%pytest -rfE -n auto -k "not ($donttest)"
|
||||
%pytest -rfE -k "not ($donttest)"
|
||||
%endif
|
||||
|
||||
%if %{without test}
|
||||
|
Loading…
Reference in New Issue
Block a user