Accepting request 537927 from devel:languages:python

- run tests only when the appropriate pythons are available

OBS-URL: https://build.opensuse.org/request/show/537927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=62
This commit is contained in:
Dominique Leuenberger 2017-11-04 09:22:18 +00:00 committed by Git OBS Bridge
commit 1116f75122
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 31 14:24:25 UTC 2017 - jmatejek@suse.com
- run tests only when the appropriate pythons are available
-------------------------------------------------------------------
Mon Sep 18 06:05:54 UTC 2017 - thomas.schraitle@suse.com

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