forked from pool/python-astropy
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:
parent
fdd4c5c4cd
commit
51357541de
@ -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>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user