forked from pool/python-frozenlist
Accepting request 1190281 from home:glaubitz:branches:devel:languages:python
- Cherry-pick patch from Fedora to fix testsuite with Python 3.13 * skip-some-attributes.patch OBS-URL: https://build.opensuse.org/request/show/1190281 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-frozenlist?expand=0&rev=18
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 14:27:41 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Cherry-pick patch from Fedora to fix testsuite with Python 3.13
|
||||
* skip-some-attributes.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 16 08:30:56 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ Source: https://files.pythonhosted.org/packages/source/f/frozenlist/froz
|
||||
Patch1: no-pytest-cov.patch
|
||||
# PATCH-FIX-OPENSUSE - avoid embedding random tmp dir in .so
|
||||
Patch2: reproducible.patch
|
||||
# PATCH-FIX-UPSTREAM gh#aio-libs/frozenlist#588 - Skip some attributes when testing
|
||||
Patch3: skip-some-attributes.patch
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel >= 3.8}
|
||||
BuildRequires: %{python_module expandvars}
|
||||
|
||||
25
skip-some-attributes.patch
Normal file
25
skip-some-attributes.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From c6e8550ff462a6e299df35a935d2ffbf2777894e Mon Sep 17 00:00:00 2001
|
||||
From: Karolina Surma <ksurma@redhat.com>
|
||||
Date: Thu, 30 May 2024 10:46:25 +0200
|
||||
Subject: [PATCH] Skip some attributes when testing
|
||||
|
||||
---
|
||||
tests/test_frozenlist.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_frozenlist.py b/tests/test_frozenlist.py
|
||||
index 403d3ec..90ea84b 100644
|
||||
--- a/tests/test_frozenlist.py
|
||||
+++ b/tests/test_frozenlist.py
|
||||
@@ -11,7 +11,7 @@ from frozenlist import FrozenList, PyFrozenList
|
||||
class FrozenListMixin:
|
||||
FrozenList = NotImplemented
|
||||
|
||||
- SKIP_METHODS = {"__abstractmethods__", "__slots__"}
|
||||
+ SKIP_METHODS = {"__abstractmethods__", "__slots__", "__static_attributes__", "__firstlineno__"}
|
||||
|
||||
def test_subclass(self) -> None:
|
||||
assert issubclass(self.FrozenList, MutableSequence)
|
||||
--
|
||||
2.44.0
|
||||
|
||||
Reference in New Issue
Block a user