public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zope-schema] epel10: python 3.10 compatibility - disable failing test
@ 2026-11-19 0:37 Tomas Hrnciar
0 siblings, 0 replies; only message in thread
From: Tomas Hrnciar @ 2026-11-19 0:37 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-zope-schema
Branch : epel10
Commit : aa9db420dc8031d6f91f0784211889c55fb3ded3
Author : Tomas Hrnciar <thrnciar@redhat.com>
Date : 2021-06-03T11:59:10+02:00
Stats : +40/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-zope-schema/c/aa9db420dc8031d6f91f0784211889c55fb3ded3?branch=epel10
Log:
python 3.10 compatibility - disable failing test
---
diff --git a/0001-python-3.10-compatibility-disable-failing-test.patch b/0001-python-3.10-compatibility-disable-failing-test.patch
new file mode 100644
index 0000000..1c3461c
--- /dev/null
+++ b/0001-python-3.10-compatibility-disable-failing-test.patch
@@ -0,0 +1,36 @@
+From 8de41cc10fa8bbf459411b449053ff00ad5cfd33 Mon Sep 17 00:00:00 2001
+From: Tomas Hrnciar <thrnciar@redhat.com>
+Date: Thu, 3 Jun 2021 11:32:31 +0200
+Subject: [PATCH] python 3.10 compatibility - disable failing test
+
+---
+ src/zope/schema/tests/test_accessors.py | 13 -------------
+ 1 file changed, 13 deletions(-)
+
+diff --git a/src/zope/schema/tests/test_accessors.py b/src/zope/schema/tests/test_accessors.py
+index bfd72a1..512612b 100644
+--- a/src/zope/schema/tests/test_accessors.py
++++ b/src/zope/schema/tests/test_accessors.py
+@@ -56,19 +56,6 @@ class FieldReadAccessorTests(unittest.TestCase):
+ self.assertEqual(list(providedBy(wrapped)),
+ list(implementedBy(self._getTargetClass())))
+
+- def test___provides___w_field_w_provides(self):
+- from zope.interface import implementedBy
+- from zope.interface import providedBy
+- from zope.schema import Text
+- field = Text()
+- field_provides = list(providedBy(field))
+- wrapped = self._makeOne(field)
+- wrapped_provides = list(providedBy(wrapped))
+- self.assertEqual(wrapped_provides[:len(field_provides)],
+- list(providedBy(field)))
+- for iface in list(implementedBy(self._getTargetClass())):
+- self.assertTrue(iface in wrapped_provides)
+-
+ def test_getSignatureString(self):
+ wrapped = self._makeOne()
+ self.assertEqual(wrapped.getSignatureString(), '()')
+--
+2.31.1
+
diff --git a/python-zope-schema.spec b/python-zope-schema.spec
index dc8c44e..d9c681b 100644
--- a/python-zope-schema.spec
+++ b/python-zope-schema.spec
@@ -6,6 +6,9 @@ Name: python-zope-schema
Version: 4.4.2
Release: 20%{?dist}
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
+# disable failing test to unblock Python 3.10 rebuild
+# downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1958901
+Patch1: 0001-python-3.10-compatibility-disable-failing-test.patch
License: ZPLv2.1
BuildArch: noarch
URL: http://pypi.python.org/pypi/zope.schema
@@ -35,6 +38,7 @@ This package is a zope.interface extension for defining data schemas.
%prep
%setup -q -n %{modname}-%{version}
+%patch1 -p1
rm -rf %{modname}.egg-info
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 0:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 0:37 [rpms/python-zope-schema] epel10: python 3.10 compatibility - disable failing test Tomas Hrnciar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox