Skip to content

Commit 3e4dbf9

Browse files
committed
Fixed a test that broke on 3.x
1 parent 559ae19 commit 3e4dbf9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flask/testsuite/basic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,14 @@ def read():
363363

364364
def run_test(expect_header):
365365
with app.test_client() as c:
366-
self.assert_equal(c.get('/bump').data, '1')
367-
self.assert_equal(c.get('/bump').data, '2')
368-
self.assert_equal(c.get('/bump').data, '3')
366+
self.assert_equal(c.get('/bump').data, b'1')
367+
self.assert_equal(c.get('/bump').data, b'2')
368+
self.assert_equal(c.get('/bump').data, b'3')
369369

370370
rv = c.get('/read')
371371
set_cookie = rv.headers.get('set-cookie')
372372
self.assert_equal(set_cookie is not None, expect_header)
373-
self.assert_equal(rv.data, '3')
373+
self.assert_equal(rv.data, b'3')
374374

375375
is_permanent = True
376376
app.config['SESSION_REFRESH_EACH_REQUEST'] = True

0 commit comments

Comments
 (0)