Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xmltodict for 
openSUSE:Factory checked in at 2022-02-23 16:25:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xmltodict (Old)
 and      /work/SRC/openSUSE:Factory/.python-xmltodict.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xmltodict"

Wed Feb 23 16:25:37 2022 rev:6 rq:956659 version:0.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xmltodict/python-xmltodict.changes        
2020-06-02 14:36:14.555066544 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-xmltodict.new.1958/python-xmltodict.changes  
    2022-02-23 16:25:44.431507307 +0100
@@ -1,0 +2,6 @@
+Tue Feb 22 10:27:36 UTC 2022 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch skip-tests-expat-245.patch:
+  * Do not run tests that make no sense with a current Expat. 
+
+-------------------------------------------------------------------

New:
----
  skip-tests-expat-245.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-xmltodict.spec ++++++
--- /var/tmp/diff_new_pack.Q7ZsFE/_old  2022-02-23 16:25:45.895507359 +0100
+++ /var/tmp/diff_new_pack.Q7ZsFE/_new  2022-02-23 16:25:45.899507359 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xmltodict
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,9 +22,9 @@
 Release:        0
 Summary:        Module to make XML working resemble JSON
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/martinblech/xmltodict
 Source:         
https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
+Patch0:         skip-tests-expat-245.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module xml}
 BuildRequires:  fdupes
@@ -40,7 +40,7 @@
 http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
 
 %prep
-%setup -q -n xmltodict-%{version}
+%autosetup -p1 -n xmltodict-%{version}
 sed -i '1{\@^#!%{_bindir}/env python@d}' xmltodict.py
 
 %build

++++++ skip-tests-expat-245.patch ++++++
Index: xmltodict-0.12.0/tests/test_xmltodict.py
===================================================================
--- xmltodict-0.12.0.orig/tests/test_xmltodict.py
+++ xmltodict-0.12.0/tests/test_xmltodict.py
@@ -8,6 +8,7 @@ except ImportError:
 
 from xml.parsers.expat import ParserCreate
 from xml.parsers import expat
+import pyexpat
 
 
 def _encode(s):
@@ -167,6 +168,7 @@ class XMLToDictTestCase(unittest.TestCas
         self.assertEqual(parse(xml),
                          parse(xml.encode('utf-8')))
 
+    @unittest.skipIf(pyexpat.version_info >= (2, 4, 5), reason="Makes no sense 
with current Expat")
     def test_namespace_support(self):
         xml = """
         <root xmlns="http://defaultns.com/";
@@ -195,6 +197,7 @@ class XMLToDictTestCase(unittest.TestCas
         res = parse(xml, process_namespaces=True)
         self.assertEqual(res, d)
 
+    @unittest.skipIf(pyexpat.version_info >= (2, 4, 5), reason="Makes no sense 
with current Expat")
     def test_namespace_collapse(self):
         xml = """
         <root xmlns="http://defaultns.com/";

Reply via email to