diff --git a/python-SQLAlchemy.spec b/python-SQLAlchemy.spec index 81c04dc..acc1122 100644 --- a/python-SQLAlchemy.spec +++ b/python-SQLAlchemy.spec @@ -85,7 +85,9 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%pytest_arch %{?jobs:-n %jobs} -k 'not (test_parseconnect and CreateEngineTest and test_bad_args)' +jobs=1 +test "%{jobs}" -gt 4 && jobs=4 +%pytest_arch -n $jobs -k 'not (test_parseconnect and CreateEngineTest and test_bad_args)' %files %{python_files} %license LICENSE