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

- use local source dir for pytest imports
  gh#openSUSE/python-rpm-macros#48

OBS-URL: https://build.opensuse.org/request/show/816623
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=197
This commit is contained in:
Tomáš Chvátal 2020-06-23 16:44:57 +00:00 committed by Git OBS Bridge
parent 7bfc82bdea
commit 9b0c40f6d2
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 23 15:41:14 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- use local source dir for pytest imports
gh#openSUSE/python-rpm-macros#48
-------------------------------------------------------------------
Mon Apr 6 17:14:11 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -135,6 +135,8 @@ find ./ -type f -name \*.py -exec sed -i \
# the 4 skipped test rely on the bundled packages but they are
# not available on virtualenv; this is expected behaviour
export LANG=en_US.UTF-8
# tests need imports local source dir
export PYTHONPATH=$(pwd)
%pytest -k 'not (test_clean_env_install or test_pip_upgrade_from_source or test_test_command_install_requirements or test_no_missing_dependencies)'
%endif