forked from pool/python-exceptiongroup
- Add skip-test_catch_handler_raises-for-older-311.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=17
This commit is contained in:
@@ -35,6 +35,9 @@ 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 skip-test_catch_handler_raises-for-older-311.patch gh#agronholm/exceptiongroup#64 mcepl@suse.com
|
||||
# Skip test_catch_handler_raises() on Python 3.11 if the Python version is less than 3.11.4
|
||||
Patch0: skip-test_catch_handler_raises-for-older-311.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module flit-scm}
|
||||
BuildRequires: %{python_module pip}
|
||||
@@ -89,8 +92,7 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# gh#agronholm/exceptiongroup#64
|
||||
%pytest -k 'not test_catch_handler_raises'
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
Reference in New Issue
Block a user