forked from pool/python-zope.testing
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| 71e8903123 | |||
| e595d17a77 | 
							
								
								
									
										31
									
								
								py314.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								py314.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| Index: zope_testing-6.0/src/zope/testing/tests.py | ||||
| =================================================================== | ||||
| --- zope_testing-6.0.orig/src/zope/testing/tests.py | ||||
| +++ zope_testing-6.0/src/zope/testing/tests.py | ||||
| @@ -36,15 +36,17 @@ def test_suite(): | ||||
|          doctest.DocFileSuite('wait.txt', setUp=setUp) | ||||
|      )) | ||||
|   | ||||
| -    suite.addTests( | ||||
| -        doctest.DocFileSuite( | ||||
| -            'doctestcase.txt', | ||||
| -            checker=renormalizing.RENormalizing([ | ||||
| -                # for Python 3.11+ | ||||
| -                (re.compile(r'\(tests\.MyTest\.test.?\)'), '(tests.MyTest)'), | ||||
| -                (re.compile(r'\(tests.MoreTests.test_.*\)'), | ||||
| -                 '(tests.MoreTests)') | ||||
| -            ]))) | ||||
| +    if sys.version_info[1] < 14: | ||||
| +        suite.addTests( | ||||
| +            doctest.DocFileSuite( | ||||
| +                'doctestcase.txt', | ||||
| +                checker=renormalizing.RENormalizing([ | ||||
| +                    # for Python 3.11+ | ||||
| +                    (re.compile(r'\(tests\.MyTest\.test.?\)'), '(tests.MyTest)'), | ||||
| +                    (re.compile(r'\(tests.MoreTests.test_.*\)'), | ||||
| +                    '(tests.MoreTests)') | ||||
| +                ]))) | ||||
| + | ||||
|      suite.addTests(doctest.DocFileSuite('cleanup.txt')) | ||||
|      suite.addTests(doctest.DocFileSuite('formparser.txt', setUp=setUp)) | ||||
|      return suite | ||||
| @@ -1,3 +1,10 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Mon Oct 20 08:25:53 UTC 2025 - Markéta Machová <mmachova@suse.com> | ||||
|  | ||||
| - Update to 6.0 | ||||
|   * Replace pkg_resources namespace with PEP 420 native namespace. | ||||
| - Add py314.patch to skip tests failing with Python 3.14 (reported) | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Mon May  5 04:01:02 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package python-zope.testing | ||||
| # | ||||
| # Copyright (c) 2025 SUSE LLC | ||||
| # Copyright (c) 2025 SUSE LLC and contributors | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -18,12 +18,14 @@ | ||||
|  | ||||
| %{?sle15_python_module_pythons} | ||||
| Name:           python-zope.testing | ||||
| Version:        5.1 | ||||
| Version:        6.0 | ||||
| Release:        0 | ||||
| Summary:        Zope testing helpers | ||||
| License:        ZPL-2.1 | ||||
| URL:            https://pypi.python.org/pypi/zope.testing | ||||
| Source:         https://files.pythonhosted.org/packages/source/z/zope.testing/zope_testing-%{version}.tar.gz | ||||
| # PATCH-FIX-OPENSUSE https://github.com/zopefoundation/zope.testing/issues/56 doctestcase test fails on Python 3.14 | ||||
| Patch0:         py314.patch | ||||
| BuildRequires:  %{python_module base >= 3.9} | ||||
| BuildRequires:  %{python_module pip} | ||||
| BuildRequires:  %{python_module setuptools} | ||||
| @@ -84,7 +86,7 @@ wait | ||||
|   See wait.txt. | ||||
|  | ||||
| %prep | ||||
| %setup -q -n zope_testing-%{version} | ||||
| %autosetup -p1 -n zope_testing-%{version} | ||||
|  | ||||
| %build | ||||
| %pyproject_wheel | ||||
| @@ -102,6 +104,5 @@ wait | ||||
| %dir %{python_sitelib}/zope | ||||
| %{python_sitelib}/zope/testing | ||||
| %{python_sitelib}/zope[_.]testing-%{version}.dist-info | ||||
| %{python_sitelib}/zope.testing-%{version}*-nspkg.pth | ||||
|  | ||||
| %changelog | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								zope_testing-5.1.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								zope_testing-5.1.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										3
									
								
								zope_testing-6.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								zope_testing-6.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:7b34133a8f4a7135f3732fa5ba31d9968e9b9029881157d2a24493356d7fd54a | ||||
| size 42462 | ||||
		Reference in New Issue
	
	Block a user