14
0
forked from pool/python-loguru

Accepting request 938254 from home:bnavigator:python-rpm-macros

- Skip two formatting tests -- gh#Delgan/loguru#550

OBS-URL: https://build.opensuse.org/request/show/938254
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=14
This commit is contained in:
John Vandenberg
2021-12-09 18:57:36 +00:00
committed by Git OBS Bridge
parent 53a87b62f2
commit 4a059b5745
2 changed files with 11 additions and 3 deletions

View File

@@ -62,13 +62,16 @@ which dispatches log messages to configured handlers.
export LANG=en_US.UTF-8
if [ $(getconf LONG_BIT) = 32 ]; then
# Threads have different references on 32-bit
donttest="(test_log_formatters and thread and not thread.name)"
donttest=" or (test_log_formatters and thread and not thread.name)"
fi
%pytest ${donttest:+ -k "not ($donttest)"}
# different line numbers -- https://github.com/Delgan/loguru/issues/550
python310_donttest=" or (test_exceptions_formatting and formatting_with_context_manager)"
%pytest -k "not (donttestexprprefixdummy $donttest ${$python_donttest})"
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/loguru*
%{python_sitelib}/loguru
%{python_sitelib}/loguru-%{version}*-info
%changelog