summaryrefslogtreecommitdiff
path: root/dev-python/flask-api/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-23 23:02:44 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-23 23:02:44 +0100
commitdb063b515939ab15261136b24e4bc44386335c0c (patch)
tree54c06cac96a32ba6fe5f69e52616a2ab27bbb6d6 /dev-python/flask-api/files
parent8b4ace9c50842c5b83401ea7b179dcab940387e1 (diff)
gentoo resync : 24.09.2020
Diffstat (limited to 'dev-python/flask-api/files')
-rw-r--r--dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch b/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch
new file mode 100644
index 000000000000..4d30691b60d3
--- /dev/null
+++ b/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch
@@ -0,0 +1,22 @@
+commit beb6a364de93a429398a9491e16f60a7aa82f51d
+Author: Louis Sautier <sautier.louis@gmail.com>
+Date: Tue Sep 22 00:46:38 2020 +0200
+
+ Fix tests with PyPy, remove unused Python2-related code
+
+diff --git a/flask_api/tests/test_parsers.py b/flask_api/tests/test_parsers.py
+index 90a6b83..b7968f6 100644
+--- a/flask_api/tests/test_parsers.py
++++ b/flask_api/tests/test_parsers.py
+@@ -36,9 +36,9 @@ class ParserTests(unittest.TestCase):
+ with self.assertRaises(exceptions.ParseError) as context:
+ parser.parse(stream, mediatypes.MediaType('application/json'))
+ detail = str(context.exception)
+- expected_py2 = 'JSON parse error - Expecting property name: line 1 column 1 (char 1)'
++ expected_pypy = 'JSON parse error - Key name must be string at char: line 1 column 2 (char 1)'
+ expected_py3 = 'JSON parse error - Expecting property name enclosed in double quotes: line 1 column 2 (char 1)'
+- self.assertIn(detail, (expected_py2, expected_py3))
++ self.assertIn(detail, (expected_pypy, expected_py3))
+
+ def test_invalid_multipart(self):
+ parser = parsers.MultiPartParser()