14
0
Files
python-zope.testing/py314.patch
Nico Krapp e595d17a77 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testing?expand=0&rev=26
2025-10-20 11:34:40 +00:00

32 lines
1.2 KiB
Diff

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