Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
python-Flask.28659
flask-python36.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File flask-python36.patch of Package python-Flask.28659
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:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor