Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-defusedxml for 
openSUSE:Factory checked in at 2021-05-20 19:24:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-defusedxml (Old)
 and      /work/SRC/openSUSE:Factory/.python-defusedxml.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-defusedxml"

Thu May 20 19:24:39 2021 rev:8 rq:893999 version:0.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-defusedxml/python-defusedxml.changes      
2021-04-01 14:15:53.447856059 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-defusedxml.new.2988/python-defusedxml.changes
    2021-05-20 19:24:55.537975645 +0200
@@ -1,0 +2,5 @@
+Tue May 18 09:25:03 UTC 2021 - pgaj...@suse.com
+
+- use %pytest macro, run lxml tests
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-defusedxml.spec ++++++
--- /var/tmp/diff_new_pack.jvAHRr/_old  2021-05-20 19:24:55.921974071 +0200
+++ /var/tmp/diff_new_pack.jvAHRr/_new  2021-05-20 19:24:55.925974054 +0200
@@ -27,7 +27,11 @@
 URL:            https://pypi.python.org/pypi/defusedxml
 Source:         
https://files.pythonhosted.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
+# SECTION test requirements
+BuildRequires:  %{python_module lxml}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module xml}
+# /SECTION
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-xml
@@ -55,7 +59,9 @@
 
 %if %{with tests}
 %check
-%python_exec setup.py test
+# see test_main() in tests.py; test_html_arg: deprecation warning is not 
raised, perhaps capturing wrongly setup?
+usable_tests=$(grep addTests tests.py | sed 
's:.*makeSuite(\([a-zA-Z]*\)).*:\1:' | tr '\n' ' ' | sed -e 's: $::' -e 's: : 
or :g')
+%pytest -s -k "($usable_tests) and not test_html_arg"
 %endif
 
 %files %{python_files}

Reply via email to