File flask-python36.patch of Package python-Flask.8593
Index: Flask-0.12.1/tests/test_basic.py
===================================================================
--- Flask-0.12.1.orig/tests/test_basic.py
+++ Flask-0.12.1/tests/test_basic.py
@@ -333,7 +333,7 @@ def test_session_expiration():
client = app.test_client()
rv = client.get('/')
assert 'set-cookie' in rv.headers
- match = re.search(r'\bexpires=([^;]+)(?i)', rv.headers['set-cookie'])
+ match = re.search(r'(?i)\bexpires=([^;]+)', rv.headers['set-cookie'])
expires = parse_date(match.group())
expected = datetime.utcnow() + app.permanent_session_lifetime
assert expires.year == expected.year
Index: Flask-0.12.1/tests/test_ext.py
===================================================================
--- Flask-0.12.1.orig/tests/test_ext.py
+++ Flask-0.12.1/tests/test_ext.py
@@ -180,7 +180,7 @@ def test_no_error_swallowing(flaskext_br
with pytest.raises(ImportError) as excinfo:
import flask.ext.broken
- assert excinfo.type is ImportError
+ assert issubclass(excinfo.type, ImportError)
if PY2:
message = 'No module named missing_module'
else: