Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-unittest-xml-reporting for
openSUSE:Factory checked in at 2023-02-27 12:55:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-unittest-xml-reporting (Old)
and /work/SRC/openSUSE:Factory/.python-unittest-xml-reporting.new.31432
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-unittest-xml-reporting"
Mon Feb 27 12:55:55 2023 rev:21 rq:1067909 version:3.0.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-unittest-xml-reporting/python-unittest-xml-reporting.changes
2022-10-19 15:23:15.436518182 +0200
+++
/work/SRC/openSUSE:Factory/.python-unittest-xml-reporting.new.31432/python-unittest-xml-reporting.changes
2023-02-27 12:55:56.539634738 +0100
@@ -1,0 +2,6 @@
+Mon Feb 20 08:50:03 UTC 2023 - Daniel Garcia <[email protected]>
+
+- Add python-311.patch to support python 3.11
+ gh#xmlrunner/unittest-xml-reporting#274
+
+-------------------------------------------------------------------
New:
----
python-311.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-unittest-xml-reporting.spec ++++++
--- /var/tmp/diff_new_pack.mkHWSc/_old 2023-02-27 12:55:56.971637400 +0100
+++ /var/tmp/diff_new_pack.mkHWSc/_new 2023-02-27 12:55:56.979637450 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-unittest-xml-reporting
#
-# 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-%{**}}
%define skip_python2 1
Name: python-unittest-xml-reporting
Version: 3.0.2
@@ -25,6 +24,8 @@
License: LGPL-3.0-or-later
URL: https://github.com/xmlrunner/unittest-xml-reporting
Source:
https://github.com/xmlrunner/unittest-xml-reporting/archive/%{version}.tar.gz
+# PATCH-FIX-UPSTREAM python-311.patch gh#xmlrunner/unittest-xml-reporting#274
+Patch0: python-311.patch
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -40,7 +41,7 @@
systems, IDEs and continuous integration servers.
%prep
-%setup -q -n unittest-xml-reporting-%{version}
+%autosetup -p1 -n unittest-xml-reporting-%{version}
%build
%python_build
++++++ python-311.patch ++++++
Index: unittest-xml-reporting-3.0.2/xmlrunner/result.py
===================================================================
--- unittest-xml-reporting-3.0.2.orig/xmlrunner/result.py
+++ unittest-xml-reporting-3.0.2/xmlrunner/result.py
@@ -179,6 +179,9 @@ class _TestInfo(object):
"""
return self.test_exception_info
+ def shortDescription(self):
+ return self.test_description
+
class _XMLTestResult(_TextTestResult):
"""
@@ -658,3 +661,8 @@ class _XMLTestResult(_TextTestResult):
def _exc_info_to_string(self, err, test):
"""Converts a sys.exc_info()-style tuple of values into a string."""
return super(_XMLTestResult, self)._exc_info_to_string(err, test)
+
+ def getDescription(self, test):
+ if isinstance(test, tuple):
+ test = test[0]
+ return super().getDescription(test)