diff --git a/python-cffi.spec b/python-cffi.spec index 6de9784..06292bc 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -65,13 +65,14 @@ export CFLAGS="%{optflags}" %check # https://bitbucket.org/cffi/cffi/issues/390/ -%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} py.test-%$python_bin_suffix -k test_dlopen_filename -W ignore::UserWarning c/ testing/ -echo "Testing test_cos_01.py" -%python_exec test_cos_01.py -echo "Testing test_cos_02.py" -%python_exec test_cos_02.py } +export PYTHONPATH=%{buildroot}%{python2_sitearch} +echo "Testing test_cos_01.py" +python2 test_cos_01.py +echo "Testing test_cos_02.py" +python2 test_cos_02.py %files %{python_files} %license LICENSE