From fbe35c921b2aef5239b78fc68aec3f9f0a095e8b397974009dc14b4f25f8c607 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 21 Feb 2023 08:31:48 +0000 Subject: [PATCH] - Disable broken test for python 3.11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpyc?expand=0&rev=28 --- python-rpyc.changes | 5 +++++ python-rpyc.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-rpyc.changes b/python-rpyc.changes index a5959a4..3765fc4 100644 --- a/python-rpyc.changes +++ b/python-rpyc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 21 08:31:28 UTC 2023 - Daniel Garcia + +- Disable broken test for python 3.11 + ------------------------------------------------------------------- Tue Dec 6 15:32:20 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-rpyc.spec b/python-rpyc.spec index 630d3f9..4f898ac 100644 --- a/python-rpyc.spec +++ b/python-rpyc.spec @@ -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