From b2af3a58b8626e6056996c5b1aacf49e36538942 Mon Sep 17 00:00:00 2001 From: cherry530 Date: Mon, 15 Nov 2021 18:29:42 +0800 Subject: [PATCH] fix test failures due to unhandled exceptions being thrown without being propagated to the caller Signed-off-by: cherry530 --- python-werkzeug.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python-werkzeug.spec b/python-werkzeug.spec index c76abbe..afcc1cf 100644 --- a/python-werkzeug.spec +++ b/python-werkzeug.spec @@ -1,13 +1,15 @@ %global _empty_manifest_terminate_build 0 Name: python-werkzeug Version: 1.0.1 -Release: 1 +Release: 2 Summary: The comprehensive WSGI web application library. License: BSD-3-Clause URL: https://palletsprojects.com/p/werkzeug/ Source0: https://github.com/pallets/werkzeug/archive/1.0.1.tar.gz BuildArch: noarch +BuildRequires: python3-werkzeug + Requires: python3-pytest Requires: python3-pytest-timeout Requires: python3-coverage @@ -155,7 +157,8 @@ mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %check -PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 +PYTHONPATH=%{buildroot}%{python3_sitelib} +/usr/bin/pytest -p no:unraisableexception %files -n python3-werkzeug -f filelist.lst %dir %{python3_sitelib}/* @@ -164,5 +167,8 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 %{_docdir}/* %changelog +* Mon Nov 15 2021 xu_ping -1.0.1-2 +- fix test failures due to unhandled exceptions being thrown without being propagated to caller. + * Thu Feb 04 2021 Python_Bot - Package Spec generated -- Gitee