Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flask/files/
Date: Tue, 02 Jun 2020 04:28:27
Message-Id: 1591072078.a49235f8280e0381b9508a7b71916f7ba3f5f596.bman@gentoo
1 commit: a49235f8280e0381b9508a7b71916f7ba3f5f596
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue May 19 19:18:13 2020 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 2 04:27:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a49235f8
7
8 dev-python/flask: remove unused patch(es)
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
12
13 dev-python/flask/files/flask-1.1.1-py38.patch | 38 ---------------------------
14 1 file changed, 38 deletions(-)
15
16 diff --git a/dev-python/flask/files/flask-1.1.1-py38.patch b/dev-python/flask/files/flask-1.1.1-py38.patch
17 deleted file mode 100644
18 index a03aa445137..00000000000
19 --- a/dev-python/flask/files/flask-1.1.1-py38.patch
20 +++ /dev/null
21 @@ -1,38 +0,0 @@
22 -commit c367a86cc5be70da4928b276d0218f98df6e854d
23 -Author: Fernanda Guimarães <fernandaguimaraes28@×××××.com>
24 -Date: Mon Oct 28 21:37:25 2019 -0300
25 -
26 - Test test_send_from_directory_bad_request no longer fails in Python 3.8.
27 -
28 -diff --git a/tests/test_helpers.py b/tests/test_helpers.py
29 -index 78a56221..21735af1 100644
30 ---- a/tests/test_helpers.py
31 -+++ b/tests/test_helpers.py
32 -@@ -11,6 +11,7 @@
33 - import datetime
34 - import io
35 - import os
36 -+import sys
37 - import uuid
38 -
39 - import pytest
40 -@@ -780,12 +781,17 @@ class TestSendfile(object):
41 - assert rv.data.strip() == b"Hello Subdomain"
42 - rv.close()
43 -
44 -- def test_send_from_directory_bad_request(self, app, req_ctx):
45 -+ def test_send_from_directory_null_character(self, app, req_ctx):
46 - app.root_path = os.path.join(
47 - os.path.dirname(__file__), "test_apps", "subdomaintestmodule"
48 - )
49 -
50 -- with pytest.raises(BadRequest):
51 -+ if sys.version_info >= (3, 8):
52 -+ exception = NotFound
53 -+ else:
54 -+ exception = BadRequest
55 -+
56 -+ with pytest.raises(exception):
57 - flask.send_from_directory("static", "bad\x00")
58 -
59 -