Skip to content

Commit 09f5a61

Browse files
authored
Update test_http_cookiejar.py
1 parent 9eb52e3 commit 09f5a61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_http_cookiejar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,11 +912,11 @@ def test_domain_match(self):
912912
self.assertFalse(user_domain_match("x.y.com", ".m"))
913913
self.assertFalse(user_domain_match("x.y.com", ""))
914914
self.assertFalse(user_domain_match("x.y.com", "."))
915+
# not both HDNs, so must string-compare equal to match
915916
self.assertTrue(user_domain_match("192.168.1.1", "192.168.1.1"))
916917
self.assertTrue(user_domain_match("[::1]", "[::1]"))
917-
self.assertFalse(user_domain_match("[::1]", "::1"))
918918
self.assertTrue(domain_match("[2001:db8:85a3::8a2e:370:7334]", "[2001:db8:85a3::8a2e:370:7334]"))
919-
# not both HDNs, so must string-compare equal to match
919+
self.assertFalse(user_domain_match("[::1]", "::1"))
920920
self.assertFalse(user_domain_match("192.168.1.1", ".168.1.1"))
921921
self.assertFalse(user_domain_match("192.168.1.1", "."))
922922
# empty string is a special case

0 commit comments

Comments
 (0)