15
0

- Eliminate complicated py2k constructs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colander?expand=0&rev=16
This commit is contained in:
2020-04-20 09:20:05 +00:00
committed by Git OBS Bridge
parent de23052252
commit 38382e5914
3 changed files with 54 additions and 15 deletions

47
fix-tests.patch.txt Normal file
View File

@@ -0,0 +1,47 @@
--- a/colander/tests/test_colander.py
+++ b/colander/tests/test_colander.py
@@ -4156,7 +4156,7 @@ class TestTupleSchema(unittest.TestCase)
self.assertEqual(schema.children[0], node)
-class TestFunctional(object):
+class FunctionalBase(object):
def test_deserialize_ok(self):
import colander.tests
@@ -4433,7 +4433,7 @@ class TestFunctional(object):
self.assertEqual(errors, expected)
-class TestImperative(unittest.TestCase, TestFunctional):
+class TestImperative(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander
@@ -4472,7 +4472,7 @@ class TestImperative(unittest.TestCase,
return schema
-class TestDeclarative(unittest.TestCase, TestFunctional):
+class TestDeclarative(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander
@@ -4503,7 +4503,7 @@ class TestDeclarative(unittest.TestCase,
return schema
-class TestUltraDeclarative(unittest.TestCase, TestFunctional):
+class TestUltraDeclarative(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander
@@ -4547,7 +4547,7 @@ class TestUltraDeclarative(unittest.Test
return schema
-class TestDeclarativeWithInstantiate(unittest.TestCase, TestFunctional):
+class TestDeclarativeWithInstantiate(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 20 09:19:56 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Eliminate complicated py2k constructs
-------------------------------------------------------------------
Fri Apr 17 08:10:18 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@@ -100,23 +100,10 @@ Provides translations for the "%{name}" package.
%check
%pytest
%files %{python_files}
%files %{python_files} -f colander_%{python_bin_suffix}.lang
%license LICENSE.txt
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%exclude %{python_sitelib}/colander/locale
%if %{have_python2} && ! 0%{?skip_python2}
%files -n %{python2_prefix}-colander-lang -f colander_%{python2_bin_suffix}.lang
%license LICENSE.txt
%{python2_sitelib}/colander/locale
%endif
%if %{have_python2} && ! 0%{?skip_python3}
%files -n %{python3_prefix}-colander-lang -f colander_%{python3_bin_suffix}.lang
%license LICENSE.txt
%{python3_sitelib}/colander/locale
%endif
%{python_sitelib}/colander*
%files %{python_files doc}
%license LICENSE.txt