We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559ae19 commit 3e4dbf9Copy full SHA for 3e4dbf9
flask/testsuite/basic.py
@@ -363,14 +363,14 @@ def read():
363
364
def run_test(expect_header):
365
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')
+ 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')
369
370
rv = c.get('/read')
371
set_cookie = rv.headers.get('set-cookie')
372
self.assert_equal(set_cookie is not None, expect_header)
373
- self.assert_equal(rv.data, '3')
+ self.assert_equal(rv.data, b'3')
374
375
is_permanent = True
376
app.config['SESSION_REFRESH_EACH_REQUEST'] = True
0 commit comments