Skip to content
Myr

Fixed a test that broke on 3.x

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 559ae19 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:flask/testsuite/basic.py+4 added-4 removed
361 unmodified lines
362 return str(flask.session.get('foo', 0))363364 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')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')369370 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')373 self.assert_equal(rv.data, b'3')374375 is_permanent = True376 app.config['SESSION_REFRESH_EACH_REQUEST'] = True377 run_test(expect_header=True)
920 unmodified lines