From 51357541def44e04536e6f4172793729e532164d1060dd000ab2e90b3ed88dfa Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 17 Apr 2021 15:31:35 +0000 Subject: [PATCH] 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 --- python-astropy.changes | 5 +++++ python-astropy.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-astropy.changes b/python-astropy.changes index e7b6909..33b34be 100644 --- a/python-astropy.changes +++ b/python-astropy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Apr 17 15:30:57 UTC 2021 - Ben Greiner + +- Fix python_expand for test call + ------------------------------------------------------------------- Thu Apr 8 16:46:35 UTC 2021 - Ben Greiner diff --git a/python-astropy.spec b/python-astropy.spec index f68860b..55f0d82 100644 --- a/python-astropy.spec +++ b/python-astropy.spec @@ -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}