1
0

- fix the test-flavor splitting for python311

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=20
This commit is contained in:
Dirk Mueller 2023-05-15 15:49:14 +00:00 committed by Git OBS Bridge
parent 4fed4eb6fe
commit cbb6e21bc1
2 changed files with 13 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Mon May 15 15:19:41 UTC 2023 - Dirk Müller <dmueller@suse.com>
* Get rid of unused functions C++ warnings
* Avoid generating a loop footer when the loop index is not used
outside of the loop.
- fix the test-flavor splitting for python311
-------------------------------------------------------------------
Wed Jan 25 10:22:53 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -21,6 +21,7 @@
%define psuffix -test-py38
%define skip_python39 1
%define skip_python310 1
%define skip_python311 1
%bcond_without test
ExclusiveArch: x86_64
%endif
@ -28,6 +29,7 @@ ExclusiveArch: x86_64
%define psuffix -test-py39
%define skip_python38 1
%define skip_python310 1
%define skip_python311 1
%bcond_without test
ExclusiveArch: x86_64
%endif
@ -35,6 +37,15 @@ ExclusiveArch: x86_64
%define psuffix -test-py310
%define skip_python38 1
%define skip_python39 1
%define skip_python311 1
%bcond_without test
ExclusiveArch: x86_64
%endif
%if "%{flavor}" == "test-py311"
%define psuffix -test-py311
%define skip_python38 1
%define skip_python39 1
%define skip_python310 1
%bcond_without test
ExclusiveArch: x86_64
%endif
@ -129,7 +140,7 @@ export CFLAGS="%{optflags}"
donttest="test_operator_intersection"
# gh#serge-sans-paille/pythran#2044 NOT FIXED by gh#serge-sans-paille/pythran#2046
donttest="$donttest or test_toolchain or test_cli"
%pytest -n auto -k "not ($donttest)" -m "not module"
%pytest %{?jobs:-n %jobs} -k "not ($donttest)" -m "not module"
%endif
%if !%{with test}