Browse Source

Fix python3 test failures

The test was raising an exception due to changes between python2 and 3
with the buffer API:

TypeError: Type str doesn't support the buffer API
pull/2484/head
Michael Komitee 7 years ago
parent
commit
6a9de4bca6
  1. 2
      tests/test_helpers.py

2
tests/test_helpers.py

@ -907,7 +907,7 @@ class TestCustomAborterMapping(object):
rv = client.get('/') rv = client.get('/')
assert rv.status_code == 404 assert rv.status_code == 404
assert 'CUSTOM ABORTER MAPPINGS' in rv.data assert b'CUSTOM ABORTER MAPPINGS' in rv.data
finally: finally:
if original != '__UNSET__': if original != '__UNSET__':
flask.aborter.mapping.update({404: original}) flask.aborter.mapping.update({404: original})

Loading…
Cancel
Save