Skip to content

Commit

Permalink
web_test: Remove obsolete compatibility with python 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Jul 11, 2024
1 parent 00110e1 commit ef8c6ab
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tornado/test/web_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,12 +417,10 @@ def test_set_cookie_expires_days(self):
def test_set_cookie_false_flags(self):
response = self.fetch("/set_falsy_flags")
headers = sorted(response.headers.get_list("Set-Cookie"))
# The secure and httponly headers are capitalized in py35 and
# lowercase in older versions.
self.assertEqual(headers[0].lower(), "a=1; path=/; secure")
self.assertEqual(headers[1].lower(), "b=1; path=/")
self.assertEqual(headers[2].lower(), "c=1; httponly; path=/")
self.assertEqual(headers[3].lower(), "d=1; path=/")
self.assertEqual(headers[0], "a=1; Path=/; Secure")
self.assertEqual(headers[1], "b=1; Path=/")
self.assertEqual(headers[2], "c=1; HttpOnly; Path=/")
self.assertEqual(headers[3], "d=1; Path=/")

def test_set_cookie_deprecated(self):
with ignore_deprecation():
Expand Down

0 comments on commit ef8c6ab

Please sign in to comment.