13
0

2 Commits

5 changed files with 5 additions and 48 deletions

BIN
exceptiongroup-1.2.2-gh.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7af03131ce1ad5177a6e449b7dc36aa9148bb9103654542a7217f5842a4df551
size 29197

View File

@@ -1,23 +0,0 @@
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

View File

@@ -1,21 +1,3 @@
-------------------------------------------------------------------
Mon Sep 8 14:14:36 UTC 2025 - Markéta Machová <mmachova@suse.com>
- 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
-------------------------------------------------------------------
Fri Jul 26 11:42:55 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-exceptiongroup
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,14 +29,12 @@
%{?sle15_python_module_pythons}
Name: python-exceptiongroup%{psuffix}
Version: 1.3.0
Version: 1.2.2
Release: 0
Summary: Backport of PEP 654 (exception groups)
License: MIT AND Python-2.0
URL: https://github.com/agronholm/exceptiongroup
Source: https://github.com/agronholm/exceptiongroup/archive/refs/tags/%{version}.tar.gz#/exceptiongroup-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/agronholm/exceptiongroup/commit/a0da94dadfb39c0b52c0cd5c87ace166b00f74c1 Fixed test failures on Python 3.14
Patch0: py314.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-scm}
BuildRequires: %{python_module pip}