You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I don't know what causes this but, on my system, test_cookielib_compatibility works with 2.7, 3.5 and 3.6 but not 3.7 or 3.8:
src/geventhttpclient/tests/test_headers.py::test_cookielib_compatibility FAILED [100%]
==================================================================================================== FAILURES =====================================================================================================
__________________________________________________________________________________________ test_cookielib_compatibility ___________________________________________________________________________________________
def test_cookielib_compatibility():
cj = CookieJar()
# Set time in order to be still valid in some years, when cookie strings expire
cj._now = cj._policy._now = time.mktime((2012, 1, 1, 0, 0, 0, 0, 0, 0))
request = Request('http://test.com')
parser = HTTPResponse()
parser.feed(MULTI_COOKIE_RESPONSE)
cookies = cj.make_cookies(parser, request)
# Don't use extract_cookies directly, as time can not be set there manually for testing
for cookie in cookies:
if cj._policy.set_ok(cookie, request):
cj.set_cookie(cookie)
# Three valid, not expired cookies placed
> assert len(list(cj)) == 3
E assert 1 == 3
E -1
E +3
src/geventhttpclient/tests/test_headers.py:124: AssertionError
I see that the Travis build works for those versions but I don't know how.
Thanks for reporting this. Unfortunately you better shouldn't hope for a fast fix, except you write it yourself. There is no active maintenance for this lib right now. Patches welcome, though :)
Hi,
I don't know what causes this but, on my system,
test_cookielib_compatibility
works with 2.7, 3.5 and 3.6 but not 3.7 or 3.8:I see that the Travis build works for those versions but I don't know how.
Here are the
cookies
variable I see with 3.8:And with 3.6:
The text was updated successfully, but these errors were encountered: