Pesky tests on EL7.

This commit is contained in:
Ralph Bean 2017-03-30 14:18:21 -04:00
parent c226e8d6a9
commit 37fbb8959c

View File

@ -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}