Skip to content

Commit 24eb5d9

Browse files
authored
Update test_http_cookiejar.py
1 parent 94bb9ab commit 24eb5d9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/test/test_http_cookiejar.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,8 +1263,7 @@ def test_missing_final_slash(self):
12631263
self.assertTrue(req.has_header("Cookie"))
12641264

12651265
def test_set_ok_port(self):
1266-
pol = DefaultCookiePolicy(
1267-
rfc2965=True, blocked_domains=[])
1266+
pol = DefaultCookiePolicy()
12681267
c = CookieJar(policy=pol)
12691268
headers = ["Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/; port=1234"]
12701269
req = urllib.request.Request("http://127.0.0.1:1234")
@@ -1284,8 +1283,7 @@ def test_set_ok_port(self):
12841283
self.assertFalse(pol.set_ok_port(c.make_cookies(res, req)[0], req))
12851284

12861285
def test_return_ok_port(self):
1287-
pol = DefaultCookiePolicy(
1288-
rfc2965=True, blocked_domains=[])
1286+
pol = DefaultCookiePolicy()
12891287
c = CookieJar(policy=pol)
12901288
headers = ["Set-Cookie: CUSTOMER=WILE_E_COYOTE; path=/; port=1234"]
12911289
req = urllib.request.Request("http://127.0.0.1:1234")

0 commit comments

Comments
 (0)