From 257d3c4815fbb9ded7c07a9356c9fe83e6b059a0 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Tue, 2 Jun 2015 19:58:53 -0400 Subject: [PATCH] Work around Python 3.4.3 cookie breakage. See: https://bugs.python.org/issue16611 --- src/zope/publisher/tests/test_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zope/publisher/tests/test_http.py b/src/zope/publisher/tests/test_http.py index 518b8247..9099ffa5 100644 --- a/src/zope/publisher/tests/test_http.py +++ b/src/zope/publisher/tests/test_http.py @@ -947,7 +947,7 @@ def testSetCookie(self): self.assertTrue('Path=/froboz;' in c) self.assertTrue('Max-Age=3600;' in c) self.assertTrue('Comment=blah%3B%E2%98%A3?;' in c, repr(c)) - self.assertTrue('secure;' in c or 'secure' in c) + self.assertTrue('secure;' in c or 'secure' in c.lower()) c = self._getCookieFromResponse([('foo', 'bar', {'secure': False})])[0] self.assertTrue('foo=bar;' in c or 'foo=bar' in c)