15
0

Accepting request 816610 from home:bnavigator:branches:devel:languages:python

- Add source dir to PYTHONPATH just as upstream does.
  Necessary due change in pytest macro gh#openSUSE/python-rpm-macros#48 
- don't benchmark, just run the tests once

OBS-URL: https://build.opensuse.org/request/show/816610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=35
This commit is contained in:
2020-06-23 16:31:52 +00:00
committed by Git OBS Bridge
parent 3cfaeef8f3
commit 6726c5bae4
2 changed files with 10 additions and 1 deletions

View File

@@ -78,7 +78,9 @@ rm -rf tests/deprecated_gallery
%check
%if %{with test}
%pytest
# local source dir is needed for tests
export PYTHONPATH=$(pwd)
%pytest --benchmark-disable
%endif
%if %{without test}