1
0

Accepting request 886319 from home:bnavigator:branches:devel:languages:python:numeric

- Fix python_expand for test call

OBS-URL: https://build.opensuse.org/request/show/886319
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=53
This commit is contained in:
Benjamin Greiner 2021-04-17 15:31:35 +00:00 committed by Git OBS Bridge
parent fdd4c5c4cd
commit 51357541de
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Apr 17 15:30:57 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Fix python_expand for test call
-------------------------------------------------------------------
Thu Apr 8 16:46:35 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -179,7 +179,7 @@ done
testselect_expr="${donttest:+-k \"not (${donttest# or })\"}"
# http://docs.astropy.org/en/latest/development/testguide.html#running-tests
# running pytest directly would require building the extensions inplace
%python_exec -B -c "
%{python_exec -B -c "
import sys, astropy
pytestargs = ('-v '
'-n auto ' # pytest-xdist
@ -188,7 +188,7 @@ pytestargs = ('-v '
'$testselect_expr')
returncode = astropy.test(args=pytestargs)
sys.exit(returncode)
"
"}
%endif
%if !%{with test}