14
0
forked from pool/python-lxml

- run tests only when the appropriate pythons are available

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=101
This commit is contained in:
Jan Matejek
2017-10-31 14:25:20 +00:00
committed by Git OBS Bridge
parent 19573682aa
commit 51efc15d33
2 changed files with 13 additions and 2 deletions

View File

@@ -90,8 +90,14 @@ export CFLAGS="%{optflags}"
# The tests fail on SLE 11 due to broken incremental parsing
# in libxml2
export CFLAGS="%{optflags}"
LANG=en_US.UTF-8 PYTHONUNBUFFERED=x make test
LANG=en_US.UTF-8 PYTHONUNBUFFERED=x make test3
export LANG=en_US.UTF-8
export PYTHONUNBUFFERED=x
%if 0%{?have_python2}
make test
%endif
%if 0%{?have_python3}
make test3
%endif
%install
%python_install