- Disable failing tests (test_contexts) that fails because of the new version
of python-coverage, gh#pytest-dev/pytest-cov#570 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=35
This commit is contained in:
parent
bd866c59e5
commit
14b618b1b0
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 28 09:31:24 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Disable failing tests (test_contexts) that fails because of the new version
|
||||
of python-coverage, gh#pytest-dev/pytest-cov#570
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 25 11:55:18 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
@ -71,11 +71,15 @@ through pytest-cov or through coverage's config file.
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
# test_dist_missing_data - needs internet access
|
||||
# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k 'not (test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath)'
|
||||
# test_dist_missing_data - needs internet access
|
||||
# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build
|
||||
donttest="test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath"
|
||||
# Tests broken with the latest version of python-coverage (6.5.0)
|
||||
# gh#pytest-dev/pytest-cov#570
|
||||
donttest+=" or test_contexts"
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k "not (${donttest})"
|
||||
%endif
|
||||
|
||||
%if ! %{with test}
|
||||
|
Loading…
x
Reference in New Issue
Block a user