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.
1 parent a875311 commit 720c80fCopy full SHA for 720c80f
1 file changed
Lib/test/test_http_cookiejar.py
@@ -1215,6 +1215,14 @@ def test_block_ip_domains(self):
1215
c.extract_cookies(res, req)
1216
self.assertEqual(len(c), 1)
1217
1218
+ c.clear()
1219
+
1220
+ pol.set_blocked_domains(["::1"])
1221
+ req = urllib.request.Request("http://[::1]:8080")
1222
+ res = FakeResponse(headers, "http://[::1]:8080")
1223
+ c.extract_cookies(res, req)
1224
+ self.assertEqual(len(c), 1)
1225
1226
def test_secure(self):
1227
for ns in True, False:
1228
for whitespace in " ", "":
0 commit comments