14
0
forked from pool/python-pyglet

Accepting request 731055 from home:jayvdb:py3only

- Use %python_expand in %check to allow building only one flavour

OBS-URL: https://build.opensuse.org/request/show/731055
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=24
This commit is contained in:
Tomáš Chvátal
2019-09-16 07:35:06 +00:00
committed by Git OBS Bridge
parent 826e451a29
commit 3cefb11dc4
2 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 15 07:07:32 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Use %python_expand in %check to allow building only one flavour
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 20 13:34:05 UTC 2019 - John Vandenberg <jayvdb@gmail.com> Wed Mar 20 13:34:05 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -271,15 +271,19 @@ pytest_addopts="--instafail --error-for-skips --timeout=30 "
pytest_addopts="$pytest_addopts tests/unit tests/integration" pytest_addopts="$pytest_addopts tests/unit tests/integration"
%{python_expand #
# These are only problematic on Python 2, and are restored after Python 2 tests # These are only problematic on Python 2, and are restored after Python 2 tests
# https://bitbucket.org/pyglet/pyglet/issues/223/clock-test-failures # https://bitbucket.org/pyglet/pyglet/issues/223/clock-test-failures
mv tests/unit/test_clock.py tests/unit/.test_clock.py if [ $python = python2 ]; then
mv tests/unit/test_clock.py tests/unit/.test_clock.py
fi
python2 -m pytest $pytest_addopts -k "not ($pytest_k_list)" $python -m pytest $pytest_addopts -k "not ($pytest_k_list)"
mv tests/unit/.test_clock.py tests/unit/test_clock.py if [ -x tests/unit/.test_clock.py ]; then
mv tests/unit/.test_clock.py tests/unit/test_clock.py
python3 -m pytest $pytest_addopts -k "not ($pytest_k_list)" fi
}
# endif test # endif test
%endif %endif