From 3e4dbf93d9ef2b64d32b291aa6f7620bdbc6576a Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 30 Jul 2013 16:56:40 +0200 Subject: [PATCH] Fixed a test that broke on 3.x --- flask/testsuite/basic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flask/testsuite/basic.py b/flask/testsuite/basic.py index 0fffd4ee..d95a4c37 100644 --- a/flask/testsuite/basic.py +++ b/flask/testsuite/basic.py @@ -363,14 +363,14 @@ class BasicFunctionalityTestCase(FlaskTestCase): def run_test(expect_header): with app.test_client() as c: - self.assert_equal(c.get('/bump').data, '1') - self.assert_equal(c.get('/bump').data, '2') - self.assert_equal(c.get('/bump').data, '3') + self.assert_equal(c.get('/bump').data, b'1') + self.assert_equal(c.get('/bump').data, b'2') + self.assert_equal(c.get('/bump').data, b'3') rv = c.get('/read') set_cookie = rv.headers.get('set-cookie') self.assert_equal(set_cookie is not None, expect_header) - self.assert_equal(rv.data, '3') + self.assert_equal(rv.data, b'3') is_permanent = True app.config['SESSION_REFRESH_EACH_REQUEST'] = True