diff --git a/python-pytest-arraydiff.spec b/python-pytest-arraydiff.spec index a6874f4..101495b 100644 --- a/python-pytest-arraydiff.spec +++ b/python-pytest-arraydiff.spec @@ -41,7 +41,6 @@ Requires: python-pytest Requires: python-six BuildArch: noarch %if %{with test} -BuildRequires: %{python_module astropy} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} @@ -78,7 +77,8 @@ At the moment, the supported file formats for the reference files are: %if %{with test} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +# generate, default_format, test_fails, test_succeeds_func_fits_hdu tests need astropy that is python3 only, so skip +%pytest -k 'not (test_generate or test_default_format or test_fails or test_succeeds_func_fits_hdu)' %endif %if !%{with test}