14
0
forked from pool/python-pyp

- Skip failing tests for Python 3.13 (gh#hauntsaninja/pyp#40).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyp?expand=0&rev=8
This commit is contained in:
2024-12-09 13:03:36 +00:00
committed by Git OBS Bridge
parent b3f8e05110
commit aa1d571cbc
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 9 13:03:02 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Skip failing tests for Python 3.13 (gh#hauntsaninja/pyp#40).
-------------------------------------------------------------------
Tue Mar 26 13:06:58 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -62,9 +62,11 @@ sed -i '/^#!\//, 1d' pyp.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# gh#hauntsaninja/pyp#40
skip_tests_python313="test_user_error or test_tracebacks"
export PATH=$(pwd):$PATH
%{python_expand ln -sf %{buildroot}%{_bindir}/pyp-%{$python_bin_suffix} pyp
PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -vv
PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -vv "$( [ -n "${skip_tests_$python}" ] && printf "%s" '-k not ('"${skip_tests_$python}"')')"
}
%post