From 6a9de4bca60f522744e980324e1a708662cea88f Mon Sep 17 00:00:00 2001 From: Michael Komitee Date: Fri, 6 Oct 2017 10:51:25 -0400 Subject: [PATCH] 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 --- tests/test_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 32931dbc..0e561391 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -907,7 +907,7 @@ class TestCustomAborterMapping(object): rv = client.get('/') assert rv.status_code == 404 - assert 'CUSTOM ABORTER MAPPINGS' in rv.data + assert b'CUSTOM ABORTER MAPPINGS' in rv.data finally: if original != '__UNSET__': flask.aborter.mapping.update({404: original})