mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 22:28:08 -07:00
dev-python/flask: Clean old up
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
https://github.com/mitsuhiko/flask/issues/487
|
||||
diff -ur Flask-0.10.1.orig/flask/helpers.py Flask-0.10.1/flask/helpers.py
|
||||
--- flask/helpers.py 2013-06-14 06:35:43.000000000 +0800
|
||||
+++ flask/helpers.py 2013-08-16 16:18:36.194006290 +0800
|
||||
@@ -679,7 +679,7 @@
|
||||
filename = sys.modules[import_name].__file__
|
||||
package_path = os.path.abspath(os.path.dirname(filename))
|
||||
# package_path ends with __init__.py for a package
|
||||
- if loader.is_package(root_mod_name):
|
||||
+ if package_path.endswith('__init__.py'):
|
||||
package_path = os.path.dirname(package_path)
|
||||
|
||||
site_parent, site_folder = os.path.split(package_path)
|
||||
@@ -1,54 +0,0 @@
|
||||
https://github.com/mitsuhiko/flask/commit/a2bc61b5ab19e899735f8945f68123b4cea570d5
|
||||
diff --git a/flask/testsuite/helpers.py b/flask/testsuite/helpers.py
|
||||
index 636f67f..7de70c0 100644
|
||||
--- a/flask/testsuite/helpers.py
|
||||
+++ b/flask/testsuite/helpers.py
|
||||
@@ -173,7 +173,33 @@ def index():
|
||||
c = app.test_client()
|
||||
rv = c.get('/')
|
||||
lines = [x.strip() for x in rv.data.strip().decode('utf-8').splitlines()]
|
||||
- self.assert_equal(lines, [
|
||||
+ sorted_by_str = [
|
||||
+ '{',
|
||||
+ '"values": {',
|
||||
+ '"0": "foo",',
|
||||
+ '"1": "foo",',
|
||||
+ '"10": "foo",',
|
||||
+ '"11": "foo",',
|
||||
+ '"12": "foo",',
|
||||
+ '"13": "foo",',
|
||||
+ '"14": "foo",',
|
||||
+ '"15": "foo",',
|
||||
+ '"16": "foo",',
|
||||
+ '"17": "foo",',
|
||||
+ '"18": "foo",',
|
||||
+ '"19": "foo",',
|
||||
+ '"2": "foo",',
|
||||
+ '"3": "foo",',
|
||||
+ '"4": "foo",',
|
||||
+ '"5": "foo",',
|
||||
+ '"6": "foo",',
|
||||
+ '"7": "foo",',
|
||||
+ '"8": "foo",',
|
||||
+ '"9": "foo"',
|
||||
+ '}',
|
||||
+ '}'
|
||||
+ ]
|
||||
+ sorted_by_int = [
|
||||
'{',
|
||||
'"values": {',
|
||||
'"0": "foo",',
|
||||
@@ -198,8 +224,12 @@ def index():
|
||||
'"19": "foo"',
|
||||
'}',
|
||||
'}'
|
||||
- ])
|
||||
+ ]
|
||||
|
||||
+ try:
|
||||
+ self.assert_equal(lines, sorted_by_int)
|
||||
+ except AssertionError:
|
||||
+ self.assert_equal(lines, sorted_by_str)
|
||||
|
||||
class SendfileTestCase(FlaskTestCase):
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
https://github.com/mitsuhiko/flask/commit/f88cc2d2f9d14d97e33ddd2bbaa4b1885db06e1c.
|
||||
diff --git a/flask/testsuite/signals.py b/flask/testsuite/signals.py
|
||||
index e061932..45ca45d 100644
|
||||
--- a/flask/testsuite/signals.py
|
||||
+++ b/flask/testsuite/signals.py
|
||||
@@ -102,7 +102,7 @@ def test_appcontext_signals(self):
|
||||
def record_push(sender, **kwargs):
|
||||
recorded.append('push')
|
||||
def record_pop(sender, **kwargs):
|
||||
- recorded.append('push')
|
||||
+ recorded.append('pop')
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
Reference in New Issue
Block a user