Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
python-Flask.8593
flask-python36.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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:
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