Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Update expectations of cookies after redirects. (#6367)

Andrey Rakhmatullin631fc65fadb8
diff --git a/tests/test_downloadermiddleware_cookies.py b/tests/test_downloadermiddleware_cookies.py
index 1f7e6615c..5eccd396a 100644
--- a/tests/test_downloadermiddleware_cookies.py
+++ b/tests/test_downloadermiddleware_cookies.py
@@ -784,7 +784,7 @@ class CookiesMiddlewareTest(TestCase):
from_scheme="https",
to_scheme="http",
cookies1=True,
- cookies2=True, # xfail, due to a bug in the redirect middleware fixed elsewhere
+ cookies2=False,
cookies3=False,
)
@@ -804,7 +804,7 @@ class CookiesMiddlewareTest(TestCase):
from_scheme="https",
to_scheme="http",
cookies1=True,
- cookies2=True, # xfail, due to a bug in the redirect middleware fixed elsewhere
+ cookies2=False,
cookies3=True,
)
@@ -824,7 +824,7 @@ class CookiesMiddlewareTest(TestCase):
from_scheme="https",
to_scheme="http",
cookies1=True,
- cookies2=True, # xfail, due to a bug in the redirect middleware fixed elsewhere
+ cookies2=False,
cookies3=False,
)