Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ddt for openSUSE:Factory 
checked in at 2021-04-01 14:15:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ddt (Old)
 and      /work/SRC/openSUSE:Factory/.python-ddt.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ddt"

Thu Apr  1 14:15:51 2021 rev:13 rq:880822 version:1.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ddt/python-ddt.changes    2021-02-01 
13:28:30.878132131 +0100
+++ /work/SRC/openSUSE:Factory/.python-ddt.new.2401/python-ddt.changes  
2021-04-01 14:15:54.947858661 +0200
@@ -1,0 +2,8 @@
+Tue Mar 23 21:06:40 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 1.4.2:
+  * Fix test failure with PyYAML 5.4.1
+- rm 0001-Use-Yaml-s-UnsafeLoader-for-Python-embedding-tests.patch:
+  merged upstream
+
+-------------------------------------------------------------------

Old:
----
  0001-Use-Yaml-s-UnsafeLoader-for-Python-embedding-tests.patch
  ddt-1.4.1.tar.gz

New:
----
  ddt-1.4.2.tar.gz

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

Other differences:
------------------
++++++ python-ddt.spec ++++++
--- /var/tmp/diff_new_pack.XLOtgo/_old  2021-04-01 14:15:56.575861487 +0200
+++ /var/tmp/diff_new_pack.XLOtgo/_new  2021-04-01 14:15:56.575861487 +0200
@@ -19,14 +19,12 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:           python-ddt
-Version:        1.4.1
+Version:        1.4.2
 Release:        0
 Summary:        Data-Driven/Decorated Tests
 License:        MIT
 URL:            https://github.com/txels/ddt
 Source:         
https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz
-# https://github.com/datadriventests/ddt/pull/96
-Patch1:         0001-Use-Yaml-s-UnsafeLoader-for-Python-embedding-tests.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros

++++++ ddt-1.4.1.tar.gz -> ddt-1.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ddt-1.4.1/PKG-INFO new/ddt-1.4.2/PKG-INFO
--- old/ddt-1.4.1/PKG-INFO      2020-05-15 04:43:34.506477800 +0200
+++ new/ddt-1.4.2/PKG-INFO      2021-03-12 21:36:29.390868000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: ddt
-Version: 1.4.1
+Version: 1.4.2
 Summary: Data-Driven/Decorated Tests
 Home-page: https://github.com/datadriventests/ddt
 Author: Carles Barrob??s
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ddt-1.4.1/ddt.egg-info/PKG-INFO 
new/ddt-1.4.2/ddt.egg-info/PKG-INFO
--- old/ddt-1.4.1/ddt.egg-info/PKG-INFO 2020-05-15 04:43:34.000000000 +0200
+++ new/ddt-1.4.2/ddt.egg-info/PKG-INFO 2021-03-12 21:36:29.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: ddt
-Version: 1.4.1
+Version: 1.4.2
 Summary: Data-Driven/Decorated Tests
 Home-page: https://github.com/datadriventests/ddt
 Author: Carles Barrob??s
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ddt-1.4.1/ddt.py new/ddt-1.4.2/ddt.py
--- old/ddt-1.4.1/ddt.py        2020-05-15 04:43:25.000000000 +0200
+++ new/ddt-1.4.2/ddt.py        2021-03-12 21:36:19.000000000 +0100
@@ -20,7 +20,7 @@
 else:
     _have_yaml = True
 
-__version__ = '1.4.1'
+__version__ = '1.4.2'
 
 # These attributes will not conflict with any real python attribute
 # They are added to the decorated test method and processed later
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ddt-1.4.1/test/test_example.py 
new/ddt-1.4.2/test/test_example.py
--- old/ddt-1.4.1/test/test_example.py  2020-05-15 04:43:25.000000000 +0200
+++ new/ddt-1.4.2/test/test_example.py  2021-03-12 21:36:19.000000000 +0100
@@ -151,7 +151,7 @@
 
     @ddt
     class YamlOnlyTestCase(unittest.TestCase):
-        @file_data('data/test_custom_yaml_loader.yaml', yaml.FullLoader)
+        @file_data('data/test_custom_yaml_loader.yaml', yaml.UnsafeLoader)
         def test_custom_yaml_loader(self, instance, expected):
             """Test with yaml tags to create specific classes to compare"""
             self.assertEqual(expected, instance)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ddt-1.4.1/test/test_functional.py 
new/ddt-1.4.2/test/test_functional.py
--- old/ddt-1.4.1/test/test_functional.py       2020-05-15 04:43:25.000000000 
+0200
+++ new/ddt-1.4.2/test/test_functional.py       2021-03-12 21:36:19.000000000 
+0100
@@ -334,11 +334,21 @@
     setattr(Mytest, 'second_test', data_hello2)
     ddt_mytest = ddt(Mytest)
 
-    assert getattr(getattr(ddt_mytest, 'first_test_1_case1'), '__doc__') == 
d1.__doc__
-    assert getattr(getattr(ddt_mytest, 'first_test_2_case2'), '__doc__') == 
func_w_doc.__doc__
-    assert getattr(getattr(ddt_mytest, 'first_test_3'), '__doc__') == 
func_w_doc.__doc__
-    assert getattr(getattr(ddt_mytest, 'second_test_1_case1'), '__doc__') == 
d1.__doc__
-    assert getattr(getattr(ddt_mytest, 'second_test_2_case2'), '__doc__') is 
None
+    assert getattr(
+        getattr(ddt_mytest, 'first_test_1_case1'), '__doc__'
+    ) == d1.__doc__
+    assert getattr(
+        getattr(ddt_mytest, 'first_test_2_case2'), '__doc__'
+    ) == func_w_doc.__doc__
+    assert getattr(
+        getattr(ddt_mytest, 'first_test_3'), '__doc__'
+    ) == func_w_doc.__doc__
+    assert getattr(
+        getattr(ddt_mytest, 'second_test_1_case1'), '__doc__'
+    ) == d1.__doc__
+    assert getattr(
+        getattr(ddt_mytest, 'second_test_2_case2'), '__doc__'
+    ) is None
     assert getattr(getattr(ddt_mytest, 'second_test_3'), '__doc__') is None
 
 
@@ -395,7 +405,10 @@
 
     obj = DummyInvalidIdentifier()
     method = getattr(obj, tests[0])
-    assert method.__name__ == 
'test_data_with_invalid_identifier_1_32v2_g__Gmw845h_W_b53wi_'
+    assert (
+        method.__name__ ==
+        'test_data_with_invalid_identifier_1_32v2_g__Gmw845h_W_b53wi_'
+    )
     assert method() == '32v2 g #Gmw845h$W b53wi.'
 
 
@@ -427,7 +440,7 @@
     loader allowing python tags is passed.
     """
 
-    from yaml import FullLoader
+    from yaml import UnsafeLoader
     from yaml.constructor import ConstructorError
 
     def str_to_type(class_name):
@@ -444,13 +457,13 @@
             raise AssertionError()
 
     @ddt
-    class YamlFullLoaderTest(object):
-        @file_data('data/test_functional_custom_tags.yaml', FullLoader)
+    class YamlUnsafeLoaderTest(object):
+        @file_data('data/test_functional_custom_tags.yaml', UnsafeLoader)
         def test_cls_is_instance(self, instance, expected):
             assert isinstance(instance, str_to_type(expected))
 
-    tests = list(filter(_is_test, YamlFullLoaderTest.__dict__))
-    obj = YamlFullLoaderTest()
+    tests = list(filter(_is_test, YamlUnsafeLoaderTest.__dict__))
+    obj = YamlUnsafeLoaderTest()
 
     if not tests:
         raise AssertionError('No tests have been found.')

Reply via email to