Hello community, here is the log from the commit of package python-Flask for openSUSE:Factory checked in at 2019-11-11 13:00:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Flask (Old) and /work/SRC/openSUSE:Factory/.python-Flask.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Flask" Mon Nov 11 13:00:30 2019 rev:22 rq:746453 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Flask/python-Flask.changes 2019-07-30 13:03:11.678416847 +0200 +++ /work/SRC/openSUSE:Factory/.python-Flask.new.2990/python-Flask.changes 2019-11-11 13:00:35.161702751 +0100 @@ -1,0 +2,5 @@ +Fri Nov 8 05:29:38 UTC 2019 - Steve Kowalik <[email protected]> + +- Add python38-exception-test.patch to fix test failures under Python 3.8 + +------------------------------------------------------------------- New: ---- python38-exception-test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Flask.spec ++++++ --- /var/tmp/diff_new_pack.yYZhL0/_old 2019-11-11 13:00:36.053703696 +0100 +++ /var/tmp/diff_new_pack.yYZhL0/_new 2019-11-11 13:00:36.069703712 +0100 @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL: http://github.com/mitsuhiko/flask/ Source: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz +Patch0: python38-exception-test.patch BuildRequires: %{python_module Jinja2 >= 2.4} BuildRequires: %{python_module Werkzeug >= 0.15} BuildRequires: %{python_module click >= 5.1} @@ -60,6 +61,7 @@ %prep %setup -q -n Flask-%{version} +%autopatch -p1 %build %python_build ++++++ python38-exception-test.patch ++++++ >From c367a86cc5be70da4928b276d0218f98df6e854d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernanda=20Guimar=C3=A3es?= <[email protected]> Date: Mon, 28 Oct 2019 21:37:25 -0300 Subject: [PATCH] Test test_send_from_directory_bad_request no longer fails in Python 3.8. --- tests/test_helpers.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 78a562213..21735af12 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -11,6 +11,7 @@ import datetime import io import os +import sys import uuid import pytest @@ -780,12 +781,17 @@ def test_send_from_directory_pathlike(self, app, req_ctx): assert rv.data.strip() == b"Hello Subdomain" rv.close() - def test_send_from_directory_bad_request(self, app, req_ctx): + def test_send_from_directory_null_character(self, app, req_ctx): app.root_path = os.path.join( os.path.dirname(__file__), "test_apps", "subdomaintestmodule" ) - with pytest.raises(BadRequest): + if sys.version_info >= (3, 8): + exception = NotFound + else: + exception = BadRequest + + with pytest.raises(exception): flask.send_from_directory("static", "bad\x00")
