Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c38ba079dd | |||
| 5f27262282 |
31
py314.patch
31
py314.patch
@@ -1,31 +0,0 @@
|
||||
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,10 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
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 and contributors
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,14 +18,12 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-zope.testing
|
||||
Version: 6.0
|
||||
Version: 5.1
|
||||
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}
|
||||
@@ -86,7 +84,7 @@ wait
|
||||
See wait.txt.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n zope_testing-%{version}
|
||||
%setup -q -n zope_testing-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
@@ -104,5 +102,6 @@ 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)
Normal file
BIN
zope_testing-5.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b34133a8f4a7135f3732fa5ba31d9968e9b9029881157d2a24493356d7fd54a
|
||||
size 42462
|
||||
Reference in New Issue
Block a user