From acf982e208a9cfefe12de3ddafe3e6fb426a12c3 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 16 Jun 2020 14:10:10 +0200 Subject: [PATCH] Deselect tests incompatible with the latest virtualenv --- python-pip.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/python-pip.spec b/python-pip.spec index fb82b25..7b3e43b 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -18,7 +18,7 @@ Name: python-%{srcname} # When updating, update the bundled libraries versions bellow! # You can use vendor_meta.sh in the dist git repo Version: %{base_version}%{?prerel:~%{prerel}} -Release: 3%{?dist} +Release: 4%{?dist} Summary: A tool for installing and managing Python packages # We bundle a lot of libraries with pip, which itself is under MIT license. @@ -348,17 +348,29 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} # test_config_file_venv_option # TODO investigate failures # test_uninstall_non_local_distutils +# Incompatible with the latest virtualenv +# test_from_link_vcs_with_source_dir_obtains_commit_id +# test_from_link_vcs_without_source_dir +# test_should_cache_git_sha pytest_k='not completion and not test_pep517_and_build_options and not test_config_file_venv_option and - not test_uninstall_non_local_distutils' + not test_uninstall_non_local_distutils and + not test_from_link_vcs_with_source_dir_obtains_commit_id and + not test_from_link_vcs_without_source_dir and + not test_should_cache_git_sha' mkdir _bin export PATH="$PWD/_bin:$PATH" export PYTHONPATH=%{buildroot}%{python3_sitelib} ln -sf %{buildroot}%{_bindir}/pip3 _bin/pip -%{__python3} -m pytest -m 'not network' -k "$(echo $pytest_k)" +# --deselect'ed tests are not compatible with the latest virtualenv +# These files contain almost 500 tests so we should enable them back +# as soon as pip will be compatible upstream +# https://github.com/pypa/pip/pull/8441 +%{__python3} -m pytest -m 'not network' -k "$(echo $pytest_k)" \ + --deselect tests/functional --deselect tests/lib/test_lib.py --deselect tests/unit/test_build_env.py %endif @@ -394,6 +406,9 @@ ln -sf %{buildroot}%{_bindir}/pip3 _bin/pip %{python_wheeldir}/%{python_wheelname} %changelog +* Tue Jun 16 2020 Lumír Balhar - 20.1.1-4 +- Deselect tests incompatible with the latest virtualenv + * Sun May 24 2020 Miro Hrončok - 20.1.1-3 - Rebuilt for Python 3.9