forked from pool/python-exceptiongroup
- Update to 1.3.0
* Added **kwargs to function and method signatures as appropriate
to match the signatures in the standard library
* In line with the stdlib typings in typeshed, updated
(Base)ExceptionGroup generic types to define defaults for their
generic arguments (defaulting to BaseExceptionGroup[BaseException]
and ExceptionGroup[Exception])
* Changed BaseExceptionGroup.__init__() to directly call
BaseException.__init__() instead of the superclass __init__()
in order to emulate the CPython behavior (broken or not)
* Changed the exceptions attribute to always return the same tuple
of exceptions, created from the original exceptions sequence
passed to BaseExceptionGroup to match CPython behavior
- Add py314.patch to fix tests on Python 3.14
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=25
This commit is contained in:
23
py314.patch
Normal file
23
py314.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From a0da94dadfb39c0b52c0cd5c87ace166b00f74c1 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
|
||||
Date: Sat, 31 May 2025 12:36:46 +0300
|
||||
Subject: [PATCH] Fixed test failures on Python 3.14
|
||||
|
||||
Fixes #148.
|
||||
---
|
||||
tests/test_exceptions.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
|
||||
index 2edcfcd..e2bc81a 100644
|
||||
--- a/tests/test_exceptions.py
|
||||
+++ b/tests/test_exceptions.py
|
||||
@@ -374,7 +374,7 @@ def test_basics_split_by_predicate__match(self):
|
||||
class DeepRecursionInSplitAndSubgroup(unittest.TestCase):
|
||||
def make_deep_eg(self):
|
||||
e = TypeError(1)
|
||||
- for _ in range(10000):
|
||||
+ for _ in range(150_000):
|
||||
e = ExceptionGroup("eg", [e])
|
||||
return e
|
||||
|
||||
Reference in New Issue
Block a user