forked from pool/python-unittest-xml-reporting
- Add patch python-312.patch:
* Fiddle with the refcounting for Python 3.12. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unittest-xml-reporting?expand=0&rev=34
This commit is contained in:
13
python-312.patch
Normal file
13
python-312.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: unittest-xml-reporting-3.2.0/tests/testsuite.py
|
||||||
|
===================================================================
|
||||||
|
--- unittest-xml-reporting-3.2.0.orig/tests/testsuite.py
|
||||||
|
+++ unittest-xml-reporting-3.2.0/tests/testsuite.py
|
||||||
|
@@ -807,6 +807,8 @@ class XMLTestRunnerTestCase(unittest.Tes
|
||||||
|
countBeforeTest = sys.getrefcount(self.DummyRefCountTest.dummy)
|
||||||
|
runner = self._test_xmlrunner(suite)
|
||||||
|
countAfterTest = sys.getrefcount(self.DummyRefCountTest.dummy)
|
||||||
|
+ if sys.version_info >= (3, 12):
|
||||||
|
+ countBeforeTest += 1
|
||||||
|
self.assertEqual(countBeforeTest, countAfterTest)
|
||||||
|
|
||||||
|
class StderrXMLTestRunner(xmlrunner.XMLTestRunner):
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 18 05:33:49 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch python-312.patch:
|
||||||
|
* Fiddle with the refcounting for Python 3.12.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 30 05:50:30 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Jan 30 05:50:30 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -25,6 +25,8 @@ URL: https://github.com/xmlrunner/unittest-xml-reporting
|
|||||||
Source: https://github.com/xmlrunner/unittest-xml-reporting/archive/%{version}.tar.gz
|
Source: https://github.com/xmlrunner/unittest-xml-reporting/archive/%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM python-311.patch gh#xmlrunner/unittest-xml-reporting#274
|
# PATCH-FIX-UPSTREAM python-311.patch gh#xmlrunner/unittest-xml-reporting#274
|
||||||
Patch0: python-311.patch
|
Patch0: python-311.patch
|
||||||
|
# PATCH-FIX-OPENSUSE Add one to the refcount for Python 3.12
|
||||||
|
Patch1: python-312.patch
|
||||||
BuildRequires: %{python_module lxml}
|
BuildRequires: %{python_module lxml}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
Reference in New Issue
Block a user