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:
committed by
Git OBS Bridge
parent
19573682aa
commit
51efc15d33
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user