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}