diff --git a/python-oauth2client.spec b/python-oauth2client.spec index 7051c26..a2f11e3 100644 --- a/python-oauth2client.spec +++ b/python-oauth2client.spec @@ -175,7 +175,18 @@ popd %endif %check + +%if 0%{?rhel} && 0%{?rhel} <= 7 +# Remove these to avoid py.test test collision. +rm -rf build/lib/tests/ +# Remove these because django is weird on el7. +rm -rf tests/contrib/django_util +# Run the tests. +py.test +%else +# Everything is fine on Fedora... tox -v --sitepackages -e py27 +%endif %if %{with python3} pushd %{py3dir}