14
0
forked from pool/python-rpyc

- Disable broken test for python 3.11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpyc?expand=0&rev=28
This commit is contained in:
2023-02-21 08:31:48 +00:00
committed by Git OBS Bridge
parent 73c6f35e2d
commit fbe35c921b
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 21 08:31:28 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Disable broken test for python 3.11
-------------------------------------------------------------------
Tue Dec 6 15:32:20 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@@ -82,7 +81,10 @@ mv %{buildroot}%{_bindir}/rpyc_registry.py %{buildroot}%{_bindir}/rpyc_registry
%if %{with test}
%check
%pytest -k 'not (TestDeploy or Test_Ssh or TestUdpRegistry or win32pipes or test_server_stops or test_immutable_object_return or test_return_of_modified_parameter or test_return_of_unmodified_parameter or test_dataframe_pickling or test_ssl_conenction or test_connection)'
donttest="TestDeploy or Test_Ssh or TestUdpRegistry or win32pipes or test_server_stops or test_immutable_object_return or test_return_of_modified_parameter or test_return_of_unmodified_parameter or test_dataframe_pickling or test_ssl_conenction or test_connection"
# Fails with python 3.11
donttest+=" or test_gdb"
%pytest -k "not ($donttest)"
%endif
%if !%{with test}
@@ -97,7 +99,8 @@ mv %{buildroot}%{_bindir}/rpyc_registry.py %{buildroot}%{_bindir}/rpyc_registry
%license LICENSE
%python_alternative %{_bindir}/rpyc_classic
%python_alternative %{_bindir}/rpyc_registry
%{python_sitelib}/*
%{python_sitelib}/rpyc
%{python_sitelib}/rpyc-%{version}*-info
%endif
%changelog