From 37fbb8959c848cc5126353a12034bfb6e8c6dace Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 30 Mar 2017 14:18:21 -0400 Subject: [PATCH] Pesky tests on EL7. --- python-oauth2client.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) 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}