7
0
forked from pool/python-pywbem

Accepting request 1141457 from systemsmanagement:wbem

- Skip tests failing on python312
  * changed repr of OrderedDict gh#pywbem/pywbem#3097
  * unexpected DeprecationWarnings

OBS-URL: https://build.opensuse.org/request/show/1141457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywbem?expand=0&rev=21
This commit is contained in:
2024-01-31 22:53:19 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jan 18 21:15:49 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Skip tests failing on python312
* changed repr of OrderedDict gh#pywbem/pywbem#3097
* unexpected DeprecationWarnings
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 25 09:55:41 UTC 2023 - Ben Greiner <code@bnavigator.de> Wed Oct 25 09:55:41 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@@ -19,6 +19,7 @@
# cythonized pywbem produces yacc parser errors # cythonized pywbem produces yacc parser errors
%bcond_with cythonize %bcond_with cythonize
Name: python-pywbem Name: python-pywbem
### FIXME: try to remove skipped unit test workaround for python 3.12 on next version update
Version: 1.6.2 Version: 1.6.2
Release: 0 Release: 0
Summary: Python module for making CIM operation calls using the WBEM protocol Summary: Python module for making CIM operation calls using the WBEM protocol
@@ -87,12 +88,14 @@ rm %{buildroot}%{_bindir}/*.bat
%python_clone -a %{buildroot}%{_bindir}/mof_compiler %python_clone -a %{buildroot}%{_bindir}/mof_compiler
%check %check
pytestargs="-W default -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning" # https://github.com/pywbem/pywbem/issues/3097
pytestargs="$pytestargs tests/unittest tests/functiontest" python312_donttest=" or (test_invokemethod_summary and instance_wp_tuple0)"
# Deprecation warning from utcnow()
python312_donttest="$python312_donttest or (test_subscriptionmanager and (kwargs29 or kwargs38))"
%if %{with cythonize} %if %{with cythonize}
%pytest_arch $pytestargs %pytest_arch -k "not (skipnothingbydefault ${$python_donttest})" tests/unittest tests/functiontest
%else %else
%pytest $pytestargs %pytest -k "not (skipnothingbydefault ${$python_donttest})" tests/unittest tests/functiontest
%endif %endif
%post %post