From 8d78255baa5b0d805cd506968657176a22099021af46e0f6dc344aec8dcdfe27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Thu, 5 Jan 2023 14:36:58 +0000 Subject: [PATCH] Accepting request 1046129 from home:dirkmueller:Factory - Add python-pytest-forked as test dependency * The pytest parameter --forked is provided by python-pytest-forked which is no longer a transitive build requirement of python-pytest-xdist * gh#pytest-dev/pytest-xdist#468, gh#pytest-dev/pytest-xdist#821 OBS-URL: https://build.opensuse.org/request/show/1046129 OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=34 --- python-wxPython.changes | 9 +++++++++ python-wxPython.spec | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-wxPython.changes b/python-wxPython.changes index aa323b8..642c2e3 100644 --- a/python-wxPython.changes +++ b/python-wxPython.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Dec 5 13:07:46 UTC 2022 - Daniel Garcia + +- Add python-pytest-forked as test dependency + * The pytest parameter --forked is provided by python-pytest-forked + which is no longer a transitive build requirement of + python-pytest-xdist + * gh#pytest-dev/pytest-xdist#468, gh#pytest-dev/pytest-xdist#821 + ------------------------------------------------------------------- Sat Aug 13 23:03:31 UTC 2022 - Stefan BrĂ¼ns diff --git a/python-wxPython.spec b/python-wxPython.spec index e0771fc..1dcc17b 100644 --- a/python-wxPython.spec +++ b/python-wxPython.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 @@ -146,6 +146,7 @@ Obsoletes: %{python_provides}-wxPython < %{version}-%{release} %endif %if %{with test} BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest-forked} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} @@ -260,8 +261,10 @@ sleep 5 # Make sure "import wx" does not confuse the wx dir with the module mv wx wx_temp +# pytest --forked from python-pytest-forked: # Run each test as a separate process, otherwise multiple app -# instances will corrupt each others static data +# instances will corrupt each others static data. +# # Run UiAction tests one by one %pytest_arch --forked -n 1 -k 'test_uiaction or test_mousemanager' unittests/ # Skip Auto ID management test (only enabled on Windows)