From 4a059b57454f5be7ee1adc5e42cd701fcd80290524e4c0f425a91c28c52ef5e1 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 9 Dec 2021 18:57:36 +0000 Subject: [PATCH] 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 --- python-loguru.changes | 5 +++++ python-loguru.spec | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-loguru.changes b/python-loguru.changes index ea20bca..7c929e0 100644 --- a/python-loguru.changes +++ b/python-loguru.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 9 18:04:19 UTC 2021 - Ben Greiner + +- Skip two formatting tests -- gh#Delgan/loguru#550 + ------------------------------------------------------------------- Sun Apr 18 12:17:42 UTC 2021 - Ben Greiner diff --git a/python-loguru.spec b/python-loguru.spec index d39cf7e..5d418b5 100644 --- a/python-loguru.spec +++ b/python-loguru.spec @@ -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