14
0
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:
Tomáš Chvátal
2020-06-23 16:45:24 +00:00
committed by Git OBS Bridge
parent 5d172578f1
commit 66f75d15ab
2 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jun 23 16:28:35 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- test import workarounds need rework
gh#openSUSE/python-rpm-macros#48
gh#PyCQA/pylint#3636
- do not benchmark, just run the tests once
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 8 19:33:50 UTC 2020 - Michael Ströder <michael@stroeder.com> Mon Jun 8 19:33:50 UTC 2020 - Michael Ströder <michael@stroeder.com>

View File

@@ -94,10 +94,14 @@ done
%if %{with tests} %if %{with tests}
%check %check
export LC_ALL="en_US.UTF-8" export LC_ALL="en_US.UTF-8"
%pytest -k "not test_do_not_import_files_from_local_directory" # this tests needs the local source dir for imports,
# workaround for gh#PyCQA/pylint#3636 # gh#openSUSE/python-rpm-macros#48
export PYTHONPATH="/" export PYTHONPATH=$(pwd)
%pytest -k "test_do_not_import_files_from_local_directory" %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 %endif
%files %{python_files} %files %{python_files}