We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f7e3bb + 0c1cd4b commit 6545fbdCopy full SHA for 6545fbd
test/test_cookies.py
@@ -332,9 +332,13 @@ def test_missing_name(self):
332
cookie = c._cookies["www.acme.com"]['/foo/']['"spam"']
333
assert cookie.name == '"spam"'
334
assert cookie.value is None
335
- assert lwp_cookie_str(cookie) == (
+ assert lwp_cookie_str(cookie) in (
336
+ r'"spam"; path="/foo/"; domain=www.acme.com; '
337
+ 'path_spec; discard; version=0',
338
+ # prior to fix for https://github.com/python/cpython/issues/130631:
339
r'"spam"; path="/foo/"; domain="www.acme.com"; '
- 'path_spec; discard; version=0')
340
341
+ )
342
old_str = repr(c)
343
c.save(ignore_expires=True, ignore_discard=True)
344
try:
0 commit comments