forked from pool/python-pylint
Accepting request 816629 from home:bnavigator:branches:devel:languages:python
- test import workarounds need rework gh#openSUSE/python-rpm-macros#48 gh#PyCQA/pylint#3636 - do not benchmark, just run the tests once OBS-URL: https://build.opensuse.org/request/show/816629 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=110
This commit is contained in:
committed by
Git OBS Bridge
parent
5d172578f1
commit
66f75d15ab
@@ -94,10 +94,14 @@ done
|
||||
%if %{with tests}
|
||||
%check
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
%pytest -k "not test_do_not_import_files_from_local_directory"
|
||||
# workaround for gh#PyCQA/pylint#3636
|
||||
export PYTHONPATH="/"
|
||||
%pytest -k "test_do_not_import_files_from_local_directory"
|
||||
# this tests needs the local source dir for imports,
|
||||
# gh#openSUSE/python-rpm-macros#48
|
||||
export PYTHONPATH=$(pwd)
|
||||
%pytest -k test_version
|
||||
# others must not import from local source dir
|
||||
# gh#PyCQA/pylint#3636
|
||||
export PYTHONPATH=""
|
||||
%pytest -k "not test_version" --benchmark-disable
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
|
Reference in New Issue
Block a user