Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
leekchan committed Sep 14, 2014
1 parent a983fd2 commit f0e3a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/test/web_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_set_cookie_max_age(self):
def test_set_cookie_expires_days(self):
response = self.fetch("/set_expires_days")
header = response.headers.get("Set-Cookie")
self.assertTrue(re.match(br'foo=bar; expires=(.+); Path=/', header))
self.assertTrue(re.match('foo=bar; expires=(.+); Path=/', header))

expires = datetime.datetime.utcnow() + datetime.timedelta(days=10)
header_expires = datetime.datetime(*email.utils.parsedate(
Expand Down

0 comments on commit f0e3a8b

Please sign in to comment.